31 using System.Runtime.InteropServices;
45 public static unsafe
class ImGui
55 int typeByteCount = 0;
58 typeByteCount = Encoding.UTF8.GetByteCount(type);
65 byte* nativeTypeStackBytes = stackalloc
byte[typeByteCount + 1];
66 nativeType = nativeTypeStackBytes;
69 int nativeTypeOffset =
Util.
GetUtf8(type, nativeType, typeByteCount);
70 nativeType[nativeTypeOffset] = 0;
96 int typeByteCount = 0;
99 typeByteCount = Encoding.UTF8.GetByteCount(type);
106 byte* nativeTypeStackBytes = stackalloc
byte[typeByteCount + 1];
107 nativeType = nativeTypeStackBytes;
110 int nativeTypeOffset =
Util.
GetUtf8(type, nativeType, typeByteCount);
111 nativeType[nativeTypeOffset] = 0;
144 int strIdByteCount = 0;
147 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
154 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
155 nativeStrId = nativeStrIdStackBytes;
158 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
159 nativeStrId[nativeStrIdOffset] = 0;
180 public static bool Begin(
string name)
183 int nameByteCount = 0;
186 nameByteCount = Encoding.UTF8.GetByteCount(name);
193 byte* nativeNameStackBytes = stackalloc
byte[nameByteCount + 1];
194 nativeName = nativeNameStackBytes;
197 int nativeNameOffset =
Util.
GetUtf8(name, nativeName, nameByteCount);
198 nativeName[nativeNameOffset] = 0;
222 public static bool Begin(
string name, ref
bool pOpen)
225 int nameByteCount = 0;
228 nameByteCount = Encoding.UTF8.GetByteCount(name);
235 byte* nativeNameStackBytes = stackalloc
byte[nameByteCount + 1];
236 nativeName = nativeNameStackBytes;
239 int nativeNameOffset =
Util.
GetUtf8(name, nativeName, nameByteCount);
240 nativeName[nativeNameOffset] = 0;
247 byte nativePOpenVal = pOpen ? (byte) 1 : (
byte) 0;
248 byte* nativePOpen = &nativePOpenVal;
256 pOpen = nativePOpenVal != 0;
270 int nameByteCount = 0;
273 nameByteCount = Encoding.UTF8.GetByteCount(name);
280 byte* nativeNameStackBytes = stackalloc
byte[nameByteCount + 1];
281 nativeName = nativeNameStackBytes;
284 int nativeNameOffset =
Util.
GetUtf8(name, nativeName, nameByteCount);
285 nativeName[nativeNameOffset] = 0;
292 byte nativePOpenVal = pOpen ? (byte) 1 : (
byte) 0;
293 byte* nativePOpen = &nativePOpenVal;
300 pOpen = nativePOpenVal != 0;
312 int strIdByteCount = 0;
315 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
322 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
323 nativeStrId = nativeStrIdStackBytes;
326 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
327 nativeStrId[nativeStrIdOffset] = 0;
355 int strIdByteCount = 0;
358 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
365 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
366 nativeStrId = nativeStrIdStackBytes;
369 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
370 nativeStrId[nativeStrIdOffset] = 0;
398 int strIdByteCount = 0;
401 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
408 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
409 nativeStrId = nativeStrIdStackBytes;
412 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
413 nativeStrId[nativeStrIdOffset] = 0;
420 byte nativeBorder = border ? (byte) 1 : (
byte) 0;
442 int strIdByteCount = 0;
445 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
452 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
453 nativeStrId = nativeStrIdStackBytes;
456 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
457 nativeStrId[nativeStrIdOffset] = 0;
464 byte nativeBorder = border ? (byte) 1 : (
byte) 0;
511 byte nativeBorder = border ? (byte) 1 : (
byte) 0;
527 byte nativeBorder = border ? (byte) 1 : (
byte) 0;
564 public static bool BeginCombo(
string label,
string previewValue)
567 int labelByteCount = 0;
570 labelByteCount = Encoding.UTF8.GetByteCount(label);
577 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
578 nativeLabel = nativeLabelStackBytes;
581 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
582 nativeLabel[nativeLabelOffset] = 0;
589 byte* nativePreviewValue;
590 int previewValueByteCount = 0;
591 if (previewValue !=
null)
593 previewValueByteCount = Encoding.UTF8.GetByteCount(previewValue);
596 nativePreviewValue =
Util.
Allocate(previewValueByteCount + 1);
600 byte* nativePreviewValueStackBytes = stackalloc
byte[previewValueByteCount + 1];
601 nativePreviewValue = nativePreviewValueStackBytes;
604 int nativePreviewValueOffset =
Util.
GetUtf8(previewValue, nativePreviewValue, previewValueByteCount);
605 nativePreviewValue[nativePreviewValueOffset] = 0;
609 nativePreviewValue =
null;
637 int labelByteCount = 0;
640 labelByteCount = Encoding.UTF8.GetByteCount(label);
647 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
648 nativeLabel = nativeLabelStackBytes;
651 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
652 nativeLabel[nativeLabelOffset] = 0;
659 byte* nativePreviewValue;
660 int previewValueByteCount = 0;
661 if (previewValue !=
null)
663 previewValueByteCount = Encoding.UTF8.GetByteCount(previewValue);
666 nativePreviewValue =
Util.
Allocate(previewValueByteCount + 1);
670 byte* nativePreviewValueStackBytes = stackalloc
byte[previewValueByteCount + 1];
671 nativePreviewValue = nativePreviewValueStackBytes;
674 int nativePreviewValueOffset =
Util.
GetUtf8(previewValue, nativePreviewValue, previewValueByteCount);
675 nativePreviewValue[nativePreviewValueOffset] = 0;
679 nativePreviewValue =
null;
711 byte nativeDisabled = disabled ? (byte) 1 : (
byte) 0;
763 int labelByteCount = 0;
766 labelByteCount = Encoding.UTF8.GetByteCount(label);
773 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
774 nativeLabel = nativeLabelStackBytes;
777 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
778 nativeLabel[nativeLabelOffset] = 0;
804 int labelByteCount = 0;
807 labelByteCount = Encoding.UTF8.GetByteCount(label);
814 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
815 nativeLabel = nativeLabelStackBytes;
818 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
819 nativeLabel[nativeLabelOffset] = 0;
853 int labelByteCount = 0;
856 labelByteCount = Encoding.UTF8.GetByteCount(label);
863 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
864 nativeLabel = nativeLabelStackBytes;
867 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
868 nativeLabel[nativeLabelOffset] = 0;
891 public static bool BeginMenu(
string label,
bool enabled)
894 int labelByteCount = 0;
897 labelByteCount = Encoding.UTF8.GetByteCount(label);
904 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
905 nativeLabel = nativeLabelStackBytes;
908 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
909 nativeLabel[nativeLabelOffset] = 0;
916 byte nativeEnabled = enabled ? (byte) 1 : (
byte) 0;
944 int strIdByteCount = 0;
947 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
954 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
955 nativeStrId = nativeStrIdStackBytes;
958 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
959 nativeStrId[nativeStrIdOffset] = 0;
985 int strIdByteCount = 0;
988 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
995 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
996 nativeStrId = nativeStrIdStackBytes;
999 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
1000 nativeStrId[nativeStrIdOffset] = 0;
1022 byte* nativeStrId =
null;
1036 int strIdByteCount = 0;
1039 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
1046 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
1047 nativeStrId = nativeStrIdStackBytes;
1050 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
1051 nativeStrId[nativeStrIdOffset] = 0;
1077 int strIdByteCount = 0;
1080 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
1087 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
1088 nativeStrId = nativeStrIdStackBytes;
1091 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
1092 nativeStrId[nativeStrIdOffset] = 0;
1114 byte* nativeStrId =
null;
1128 int strIdByteCount = 0;
1131 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
1138 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
1139 nativeStrId = nativeStrIdStackBytes;
1142 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
1143 nativeStrId[nativeStrIdOffset] = 0;
1169 int strIdByteCount = 0;
1172 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
1179 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
1180 nativeStrId = nativeStrIdStackBytes;
1183 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
1184 nativeStrId[nativeStrIdOffset] = 0;
1206 byte* nativeStrId =
null;
1220 int strIdByteCount = 0;
1223 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
1230 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
1231 nativeStrId = nativeStrIdStackBytes;
1234 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
1235 nativeStrId[nativeStrIdOffset] = 0;
1261 int strIdByteCount = 0;
1264 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
1271 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
1272 nativeStrId = nativeStrIdStackBytes;
1275 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
1276 nativeStrId[nativeStrIdOffset] = 0;
1300 int nameByteCount = 0;
1303 nameByteCount = Encoding.UTF8.GetByteCount(name);
1310 byte* nativeNameStackBytes = stackalloc
byte[nameByteCount + 1];
1311 nativeName = nativeNameStackBytes;
1314 int nativeNameOffset =
Util.
GetUtf8(name, nativeName, nameByteCount);
1315 nativeName[nativeNameOffset] = 0;
1342 int nameByteCount = 0;
1345 nameByteCount = Encoding.UTF8.GetByteCount(name);
1352 byte* nativeNameStackBytes = stackalloc
byte[nameByteCount + 1];
1353 nativeName = nativeNameStackBytes;
1356 int nativeNameOffset =
Util.
GetUtf8(name, nativeName, nameByteCount);
1357 nativeName[nativeNameOffset] = 0;
1364 byte nativePOpenVal = pOpen ? (byte) 1 : (
byte) 0;
1365 byte* nativePOpen = &nativePOpenVal;
1373 pOpen = nativePOpenVal != 0;
1387 int nameByteCount = 0;
1390 nameByteCount = Encoding.UTF8.GetByteCount(name);
1397 byte* nativeNameStackBytes = stackalloc
byte[nameByteCount + 1];
1398 nativeName = nativeNameStackBytes;
1401 int nativeNameOffset =
Util.
GetUtf8(name, nativeName, nameByteCount);
1402 nativeName[nativeNameOffset] = 0;
1409 byte nativePOpenVal = pOpen ? (byte) 1 : (
byte) 0;
1410 byte* nativePOpen = &nativePOpenVal;
1417 pOpen = nativePOpenVal != 0;
1429 int strIdByteCount = 0;
1432 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
1439 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
1440 nativeStrId = nativeStrIdStackBytes;
1443 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
1444 nativeStrId[nativeStrIdOffset] = 0;
1470 int strIdByteCount = 0;
1473 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
1480 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
1481 nativeStrId = nativeStrIdStackBytes;
1484 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
1485 nativeStrId[nativeStrIdOffset] = 0;
1509 int labelByteCount = 0;
1512 labelByteCount = Encoding.UTF8.GetByteCount(label);
1519 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
1520 nativeLabel = nativeLabelStackBytes;
1523 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
1524 nativeLabel[nativeLabelOffset] = 0;
1551 int labelByteCount = 0;
1554 labelByteCount = Encoding.UTF8.GetByteCount(label);
1561 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
1562 nativeLabel = nativeLabelStackBytes;
1565 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
1566 nativeLabel[nativeLabelOffset] = 0;
1573 byte nativePOpenVal = pOpen ? (byte) 1 : (
byte) 0;
1574 byte* nativePOpen = &nativePOpenVal;
1582 pOpen = nativePOpenVal != 0;
1596 int labelByteCount = 0;
1599 labelByteCount = Encoding.UTF8.GetByteCount(label);
1606 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
1607 nativeLabel = nativeLabelStackBytes;
1610 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
1611 nativeLabel[nativeLabelOffset] = 0;
1618 byte nativePOpenVal = pOpen ? (byte) 1 : (
byte) 0;
1619 byte* nativePOpen = &nativePOpenVal;
1626 pOpen = nativePOpenVal != 0;
1639 int strIdByteCount = 0;
1642 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
1649 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
1650 nativeStrId = nativeStrIdStackBytes;
1653 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
1654 nativeStrId[nativeStrIdOffset] = 0;
1663 float innerWidth = 0.0f;
1683 int strIdByteCount = 0;
1686 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
1693 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
1694 nativeStrId = nativeStrIdStackBytes;
1697 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
1698 nativeStrId[nativeStrIdOffset] = 0;
1706 float innerWidth = 0.0f;
1727 int strIdByteCount = 0;
1730 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
1737 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
1738 nativeStrId = nativeStrIdStackBytes;
1741 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
1742 nativeStrId[nativeStrIdOffset] = 0;
1749 float innerWidth = 0.0f;
1771 int strIdByteCount = 0;
1774 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
1781 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
1782 nativeStrId = nativeStrIdStackBytes;
1785 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
1786 nativeStrId[nativeStrIdOffset] = 0;
1827 int fmtByteCount = 0;
1830 fmtByteCount = Encoding.UTF8.GetByteCount(fmt);
1837 byte* nativeFmtStackBytes = stackalloc
byte[fmtByteCount + 1];
1838 nativeFmt = nativeFmtStackBytes;
1841 int nativeFmtOffset =
Util.
GetUtf8(fmt, nativeFmt, fmtByteCount);
1842 nativeFmt[nativeFmtOffset] = 0;
1864 int labelByteCount = 0;
1867 labelByteCount = Encoding.UTF8.GetByteCount(label);
1874 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
1875 nativeLabel = nativeLabelStackBytes;
1878 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
1879 nativeLabel[nativeLabelOffset] = 0;
1905 int labelByteCount = 0;
1908 labelByteCount = Encoding.UTF8.GetByteCount(label);
1915 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
1916 nativeLabel = nativeLabelStackBytes;
1919 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
1920 nativeLabel[nativeLabelOffset] = 0;
1955 int labelByteCount = 0;
1958 labelByteCount = Encoding.UTF8.GetByteCount(label);
1965 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
1966 nativeLabel = nativeLabelStackBytes;
1969 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
1970 nativeLabel[nativeLabelOffset] = 0;
1977 byte nativeVVal = v ? (byte) 1 : (
byte) 0;
1978 byte* nativeV = &nativeVVal;
1985 v = nativeVVal != 0;
1999 int labelByteCount = 0;
2002 labelByteCount = Encoding.UTF8.GetByteCount(label);
2009 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
2010 nativeLabel = nativeLabelStackBytes;
2013 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
2014 nativeLabel[nativeLabelOffset] = 0;
2021 fixed (
int* nativeFlags = &flags)
2043 int labelByteCount = 0;
2046 labelByteCount = Encoding.UTF8.GetByteCount(label);
2053 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
2054 nativeLabel = nativeLabelStackBytes;
2057 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
2058 nativeLabel[nativeLabelOffset] = 0;
2065 fixed (uint* nativeFlags = &flags)
2093 int labelByteCount = 0;
2096 labelByteCount = Encoding.UTF8.GetByteCount(label);
2103 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
2104 nativeLabel = nativeLabelStackBytes;
2107 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
2108 nativeLabel[nativeLabelOffset] = 0;
2134 int labelByteCount = 0;
2137 labelByteCount = Encoding.UTF8.GetByteCount(label);
2144 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
2145 nativeLabel = nativeLabelStackBytes;
2148 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
2149 nativeLabel[nativeLabelOffset] = 0;
2174 int labelByteCount = 0;
2177 labelByteCount = Encoding.UTF8.GetByteCount(label);
2184 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
2185 nativeLabel = nativeLabelStackBytes;
2188 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
2189 nativeLabel[nativeLabelOffset] = 0;
2196 byte nativePVisibleVal = pVisible ? (byte) 1 : (
byte) 0;
2197 byte* nativePVisible = &nativePVisibleVal;
2205 pVisible = nativePVisibleVal != 0;
2219 int labelByteCount = 0;
2222 labelByteCount = Encoding.UTF8.GetByteCount(label);
2229 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
2230 nativeLabel = nativeLabelStackBytes;
2233 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
2234 nativeLabel[nativeLabelOffset] = 0;
2241 byte nativePVisibleVal = pVisible ? (byte) 1 : (
byte) 0;
2242 byte* nativePVisible = &nativePVisibleVal;
2249 pVisible = nativePVisibleVal != 0;
2262 int descIdByteCount = 0;
2265 descIdByteCount = Encoding.UTF8.GetByteCount(descId);
2272 byte* nativeDescIdStackBytes = stackalloc
byte[descIdByteCount + 1];
2273 nativeDescId = nativeDescIdStackBytes;
2276 int nativeDescIdOffset =
Util.
GetUtf8(descId, nativeDescId, descIdByteCount);
2277 nativeDescId[nativeDescIdOffset] = 0;
2281 nativeDescId =
null;
2305 int descIdByteCount = 0;
2308 descIdByteCount = Encoding.UTF8.GetByteCount(descId);
2315 byte* nativeDescIdStackBytes = stackalloc
byte[descIdByteCount + 1];
2316 nativeDescId = nativeDescIdStackBytes;
2319 int nativeDescIdOffset =
Util.
GetUtf8(descId, nativeDescId, descIdByteCount);
2320 nativeDescId[nativeDescIdOffset] = 0;
2324 nativeDescId =
null;
2348 int descIdByteCount = 0;
2351 descIdByteCount = Encoding.UTF8.GetByteCount(descId);
2358 byte* nativeDescIdStackBytes = stackalloc
byte[descIdByteCount + 1];
2359 nativeDescId = nativeDescIdStackBytes;
2362 int nativeDescIdOffset =
Util.
GetUtf8(descId, nativeDescId, descIdByteCount);
2363 nativeDescId[nativeDescIdOffset] = 0;
2367 nativeDescId =
null;
2400 fixed (
float* nativeOutR = &outR)
2402 fixed (
float* nativeOutG = &outG)
2404 fixed (
float* nativeOutB = &outB)
2423 fixed (
float* nativeOutH = &outH)
2425 fixed (
float* nativeOutS = &outS)
2427 fixed (
float* nativeOutV = &outV)
2456 int labelByteCount = 0;
2459 labelByteCount = Encoding.UTF8.GetByteCount(label);
2466 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
2467 nativeLabel = nativeLabelStackBytes;
2470 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
2471 nativeLabel[nativeLabelOffset] = 0;
2501 int labelByteCount = 0;
2504 labelByteCount = Encoding.UTF8.GetByteCount(label);
2511 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
2512 nativeLabel = nativeLabelStackBytes;
2515 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
2516 nativeLabel[nativeLabelOffset] = 0;
2544 int labelByteCount = 0;
2547 labelByteCount = Encoding.UTF8.GetByteCount(label);
2554 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
2555 nativeLabel = nativeLabelStackBytes;
2558 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
2559 nativeLabel[nativeLabelOffset] = 0;
2589 int labelByteCount = 0;
2592 labelByteCount = Encoding.UTF8.GetByteCount(label);
2599 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
2600 nativeLabel = nativeLabelStackBytes;
2603 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
2604 nativeLabel[nativeLabelOffset] = 0;
2632 int labelByteCount = 0;
2635 labelByteCount = Encoding.UTF8.GetByteCount(label);
2642 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
2643 nativeLabel = nativeLabelStackBytes;
2646 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
2647 nativeLabel[nativeLabelOffset] = 0;
2677 int labelByteCount = 0;
2680 labelByteCount = Encoding.UTF8.GetByteCount(label);
2687 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
2688 nativeLabel = nativeLabelStackBytes;
2691 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
2692 nativeLabel[nativeLabelOffset] = 0;
2720 int labelByteCount = 0;
2723 labelByteCount = Encoding.UTF8.GetByteCount(label);
2730 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
2731 nativeLabel = nativeLabelStackBytes;
2734 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
2735 nativeLabel[nativeLabelOffset] = 0;
2743 float* refCol =
null;
2766 int labelByteCount = 0;
2769 labelByteCount = Encoding.UTF8.GetByteCount(label);
2776 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
2777 nativeLabel = nativeLabelStackBytes;
2780 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
2781 nativeLabel[nativeLabelOffset] = 0;
2788 float* refCol =
null;
2812 int labelByteCount = 0;
2815 labelByteCount = Encoding.UTF8.GetByteCount(label);
2822 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
2823 nativeLabel = nativeLabelStackBytes;
2826 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
2827 nativeLabel[nativeLabelOffset] = 0;
2836 fixed (
float* nativeRefCol = &refCol)
2855 byte* nativeId =
null;
2866 byte* nativeId =
null;
2879 int idByteCount = 0;
2882 idByteCount = Encoding.UTF8.GetByteCount(
id);
2889 byte* nativeIdStackBytes = stackalloc
byte[idByteCount + 1];
2890 nativeId = nativeIdStackBytes;
2893 int nativeIdOffset =
Util.
GetUtf8(
id, nativeId, idByteCount);
2894 nativeId[nativeIdOffset] = 0;
2915 public static void Columns(
int count,
string id,
bool border)
2918 int idByteCount = 0;
2921 idByteCount = Encoding.UTF8.GetByteCount(
id);
2928 byte* nativeIdStackBytes = stackalloc
byte[idByteCount + 1];
2929 nativeId = nativeIdStackBytes;
2932 int nativeIdOffset =
Util.
GetUtf8(
id, nativeId, idByteCount);
2933 nativeId[nativeIdOffset] = 0;
2940 byte nativeBorder = border ? (byte) 1 : (
byte) 0;
2956 public static bool Combo(
string label, ref
int currentItem,
string[] items,
int itemsCount)
2959 int labelByteCount = 0;
2962 labelByteCount = Encoding.UTF8.GetByteCount(label);
2969 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
2970 nativeLabel = nativeLabelStackBytes;
2973 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
2974 nativeLabel[nativeLabelOffset] = 0;
2981 int* itemsByteCounts = stackalloc
int[items.Length];
2982 int itemsByteCount = 0;
2983 for (
int i = 0; i < items.Length; i++)
2985 string s = items[i];
2986 itemsByteCounts[i] = Encoding.UTF8.GetByteCount(s);
2987 itemsByteCount += itemsByteCounts[i] + 1;
2990 byte* nativeItemsData = stackalloc
byte[itemsByteCount];
2992 for (
int i = 0; i < items.Length; i++)
2994 string s = items[i];
2995 fixed (
char* sPtr = s)
2997 offset += Encoding.UTF8.GetBytes(sPtr, s.Length, nativeItemsData + offset, itemsByteCounts[i]);
2998 nativeItemsData[offset] = 0;
3003 byte** nativeItems = stackalloc
byte*[items.Length];
3005 for (
int i = 0; i < items.Length; i++)
3007 nativeItems[i] = &nativeItemsData[offset];
3008 offset += itemsByteCounts[i] + 1;
3011 int popupMaxHeightInItems = -1;
3012 fixed (
int* nativeCurrentItem = ¤tItem)
3033 public static bool Combo(
string label, ref
int currentItem,
string[] items,
int itemsCount,
int popupMaxHeightInItems)
3036 int labelByteCount = 0;
3039 labelByteCount = Encoding.UTF8.GetByteCount(label);
3046 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
3047 nativeLabel = nativeLabelStackBytes;
3050 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
3051 nativeLabel[nativeLabelOffset] = 0;
3058 int* itemsByteCounts = stackalloc
int[items.Length];
3059 int itemsByteCount = 0;
3060 for (
int i = 0; i < items.Length; i++)
3062 string s = items[i];
3063 itemsByteCounts[i] = Encoding.UTF8.GetByteCount(s);
3064 itemsByteCount += itemsByteCounts[i] + 1;
3067 byte* nativeItemsData = stackalloc
byte[itemsByteCount];
3069 for (
int i = 0; i < items.Length; i++)
3071 string s = items[i];
3072 fixed (
char* sPtr = s)
3074 offset += Encoding.UTF8.GetBytes(sPtr, s.Length, nativeItemsData + offset, itemsByteCounts[i]);
3075 nativeItemsData[offset] = 0;
3080 byte** nativeItems = stackalloc
byte*[items.Length];
3082 for (
int i = 0; i < items.Length; i++)
3084 nativeItems[i] = &nativeItemsData[offset];
3085 offset += itemsByteCounts[i] + 1;
3088 fixed (
int* nativeCurrentItem = ¤tItem)
3107 public static bool Combo(
string label, ref
int currentItem,
string itemsSeparatedByZeros)
3110 int labelByteCount = 0;
3113 labelByteCount = Encoding.UTF8.GetByteCount(label);
3120 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
3121 nativeLabel = nativeLabelStackBytes;
3124 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
3125 nativeLabel[nativeLabelOffset] = 0;
3132 byte* nativeItemsSeparatedByZeros;
3133 int itemsSeparatedByZerosByteCount = 0;
3134 if (itemsSeparatedByZeros !=
null)
3136 itemsSeparatedByZerosByteCount = Encoding.UTF8.GetByteCount(itemsSeparatedByZeros);
3139 nativeItemsSeparatedByZeros =
Util.
Allocate(itemsSeparatedByZerosByteCount + 1);
3143 byte* nativeItemsSeparatedByZerosStackBytes = stackalloc
byte[itemsSeparatedByZerosByteCount + 1];
3144 nativeItemsSeparatedByZeros = nativeItemsSeparatedByZerosStackBytes;
3147 int nativeItemsSeparatedByZerosOffset =
Util.
GetUtf8(itemsSeparatedByZeros, nativeItemsSeparatedByZeros, itemsSeparatedByZerosByteCount);
3148 nativeItemsSeparatedByZeros[nativeItemsSeparatedByZerosOffset] = 0;
3152 nativeItemsSeparatedByZeros =
null;
3155 int popupMaxHeightInItems = -1;
3156 fixed (
int* nativeCurrentItem = ¤tItem)
3158 byte ret =
ImGuiNative.
igCombo_Str(nativeLabel, nativeCurrentItem, nativeItemsSeparatedByZeros, popupMaxHeightInItems);
3166 Util.
Free(nativeItemsSeparatedByZeros);
3181 public static bool Combo(
string label, ref
int currentItem,
string itemsSeparatedByZeros,
int popupMaxHeightInItems)
3184 int labelByteCount = 0;
3187 labelByteCount = Encoding.UTF8.GetByteCount(label);
3194 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
3195 nativeLabel = nativeLabelStackBytes;
3198 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
3199 nativeLabel[nativeLabelOffset] = 0;
3206 byte* nativeItemsSeparatedByZeros;
3207 int itemsSeparatedByZerosByteCount = 0;
3208 if (itemsSeparatedByZeros !=
null)
3210 itemsSeparatedByZerosByteCount = Encoding.UTF8.GetByteCount(itemsSeparatedByZeros);
3213 nativeItemsSeparatedByZeros =
Util.
Allocate(itemsSeparatedByZerosByteCount + 1);
3217 byte* nativeItemsSeparatedByZerosStackBytes = stackalloc
byte[itemsSeparatedByZerosByteCount + 1];
3218 nativeItemsSeparatedByZeros = nativeItemsSeparatedByZerosStackBytes;
3221 int nativeItemsSeparatedByZerosOffset =
Util.
GetUtf8(itemsSeparatedByZeros, nativeItemsSeparatedByZeros, itemsSeparatedByZerosByteCount);
3222 nativeItemsSeparatedByZeros[nativeItemsSeparatedByZerosOffset] = 0;
3226 nativeItemsSeparatedByZeros =
null;
3229 fixed (
int* nativeCurrentItem = ¤tItem)
3231 byte ret =
ImGuiNative.
igCombo_Str(nativeLabel, nativeCurrentItem, nativeItemsSeparatedByZeros, popupMaxHeightInItems);
3239 Util.
Free(nativeItemsSeparatedByZeros);
3282 byte* nativeVersionStr;
3283 int versionStrByteCount = 0;
3284 if (versionStr !=
null)
3286 versionStrByteCount = Encoding.UTF8.GetByteCount(versionStr);
3289 nativeVersionStr =
Util.
Allocate(versionStrByteCount + 1);
3293 byte* nativeVersionStrStackBytes = stackalloc
byte[versionStrByteCount + 1];
3294 nativeVersionStr = nativeVersionStrStackBytes;
3297 int nativeVersionStrOffset =
Util.
GetUtf8(versionStr, nativeVersionStr, versionStrByteCount);
3298 nativeVersionStr[nativeVersionStrOffset] = 0;
3302 nativeVersionStr =
null;
3321 int textByteCount = 0;
3324 textByteCount = Encoding.UTF8.GetByteCount(text);
3331 byte* nativeTextStackBytes = stackalloc
byte[textByteCount + 1];
3332 nativeText = nativeTextStackBytes;
3335 int nativeTextOffset =
Util.
GetUtf8(text, nativeText, textByteCount);
3336 nativeText[nativeTextOffset] = 0;
3355 IntPtr ctx = IntPtr.Zero;
3498 int labelByteCount = 0;
3501 labelByteCount = Encoding.UTF8.GetByteCount(label);
3508 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
3509 nativeLabel = nativeLabelStackBytes;
3512 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
3513 nativeLabel[nativeLabelOffset] = 0;
3520 float vSpeed = 1.0f;
3524 int formatByteCount = 0;
3525 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
3532 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
3533 nativeFormat = nativeFormatStackBytes;
3536 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
3537 nativeFormat[nativeFormatOffset] = 0;
3539 fixed (
float* nativeV = &v)
3563 public static bool DragFloat(
string label, ref
float v,
float vSpeed)
3566 int labelByteCount = 0;
3569 labelByteCount = Encoding.UTF8.GetByteCount(label);
3576 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
3577 nativeLabel = nativeLabelStackBytes;
3580 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
3581 nativeLabel[nativeLabelOffset] = 0;
3591 int formatByteCount = 0;
3592 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
3599 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
3600 nativeFormat = nativeFormatStackBytes;
3603 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
3604 nativeFormat[nativeFormatOffset] = 0;
3606 fixed (
float* nativeV = &v)
3631 public static bool DragFloat(
string label, ref
float v,
float vSpeed,
float vMin)
3634 int labelByteCount = 0;
3637 labelByteCount = Encoding.UTF8.GetByteCount(label);
3644 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
3645 nativeLabel = nativeLabelStackBytes;
3648 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
3649 nativeLabel[nativeLabelOffset] = 0;
3658 int formatByteCount = 0;
3659 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
3666 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
3667 nativeFormat = nativeFormatStackBytes;
3670 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
3671 nativeFormat[nativeFormatOffset] = 0;
3673 fixed (
float* nativeV = &v)
3699 public static bool DragFloat(
string label, ref
float v,
float vSpeed,
float vMin,
float vMax)
3702 int labelByteCount = 0;
3705 labelByteCount = Encoding.UTF8.GetByteCount(label);
3712 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
3713 nativeLabel = nativeLabelStackBytes;
3716 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
3717 nativeLabel[nativeLabelOffset] = 0;
3725 int formatByteCount = 0;
3726 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
3733 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
3734 nativeFormat = nativeFormatStackBytes;
3737 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
3738 nativeFormat[nativeFormatOffset] = 0;
3740 fixed (
float* nativeV = &v)
3767 public static bool DragFloat(
string label, ref
float v,
float vSpeed,
float vMin,
float vMax,
string format)
3770 int labelByteCount = 0;
3773 labelByteCount = Encoding.UTF8.GetByteCount(label);
3780 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
3781 nativeLabel = nativeLabelStackBytes;
3784 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
3785 nativeLabel[nativeLabelOffset] = 0;
3793 int formatByteCount = 0;
3796 formatByteCount = Encoding.UTF8.GetByteCount(format);
3803 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
3804 nativeFormat = nativeFormatStackBytes;
3807 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
3808 nativeFormat[nativeFormatOffset] = 0;
3812 nativeFormat =
null;
3816 fixed (
float* nativeV = &v)
3844 public static bool DragFloat(
string label, ref
float v,
float vSpeed,
float vMin,
float vMax,
string format,
ImGuiSliders flag)
3847 int labelByteCount = 0;
3850 labelByteCount = Encoding.UTF8.GetByteCount(label);
3857 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
3858 nativeLabel = nativeLabelStackBytes;
3861 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
3862 nativeLabel[nativeLabelOffset] = 0;
3870 int formatByteCount = 0;
3873 formatByteCount = Encoding.UTF8.GetByteCount(format);
3880 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
3881 nativeFormat = nativeFormatStackBytes;
3884 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
3885 nativeFormat[nativeFormatOffset] = 0;
3889 nativeFormat =
null;
3892 fixed (
float* nativeV = &v)
3918 int labelByteCount = 0;
3921 labelByteCount = Encoding.UTF8.GetByteCount(label);
3928 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
3929 nativeLabel = nativeLabelStackBytes;
3932 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
3933 nativeLabel[nativeLabelOffset] = 0;
3940 float vSpeed = 1.0f;
3944 int formatByteCount = 0;
3945 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
3952 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
3953 nativeFormat = nativeFormatStackBytes;
3956 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
3957 nativeFormat[nativeFormatOffset] = 0;
3986 int labelByteCount = 0;
3989 labelByteCount = Encoding.UTF8.GetByteCount(label);
3996 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
3997 nativeLabel = nativeLabelStackBytes;
4000 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
4001 nativeLabel[nativeLabelOffset] = 0;
4011 int formatByteCount = 0;
4012 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
4019 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
4020 nativeFormat = nativeFormatStackBytes;
4023 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
4024 nativeFormat[nativeFormatOffset] = 0;
4054 int labelByteCount = 0;
4057 labelByteCount = Encoding.UTF8.GetByteCount(label);
4064 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
4065 nativeLabel = nativeLabelStackBytes;
4068 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
4069 nativeLabel[nativeLabelOffset] = 0;
4078 int formatByteCount = 0;
4079 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
4086 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
4087 nativeFormat = nativeFormatStackBytes;
4090 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
4091 nativeFormat[nativeFormatOffset] = 0;
4122 int labelByteCount = 0;
4125 labelByteCount = Encoding.UTF8.GetByteCount(label);
4132 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
4133 nativeLabel = nativeLabelStackBytes;
4136 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
4137 nativeLabel[nativeLabelOffset] = 0;
4145 int formatByteCount = 0;
4146 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
4153 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
4154 nativeFormat = nativeFormatStackBytes;
4157 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
4158 nativeFormat[nativeFormatOffset] = 0;
4187 public static bool DragFloat2(
string label, ref
Vector2F v,
float vSpeed,
float vMin,
float vMax,
string format)
4190 int labelByteCount = 0;
4193 labelByteCount = Encoding.UTF8.GetByteCount(label);
4200 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
4201 nativeLabel = nativeLabelStackBytes;
4204 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
4205 nativeLabel[nativeLabelOffset] = 0;
4213 int formatByteCount = 0;
4216 formatByteCount = Encoding.UTF8.GetByteCount(format);
4223 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
4224 nativeFormat = nativeFormatStackBytes;
4227 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
4228 nativeFormat[nativeFormatOffset] = 0;
4232 nativeFormat =
null;
4267 int labelByteCount = 0;
4270 labelByteCount = Encoding.UTF8.GetByteCount(label);
4277 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
4278 nativeLabel = nativeLabelStackBytes;
4281 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
4282 nativeLabel[nativeLabelOffset] = 0;
4290 int formatByteCount = 0;
4293 formatByteCount = Encoding.UTF8.GetByteCount(format);
4300 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
4301 nativeFormat = nativeFormatStackBytes;
4304 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
4305 nativeFormat[nativeFormatOffset] = 0;
4309 nativeFormat =
null;
4338 int labelByteCount = 0;
4341 labelByteCount = Encoding.UTF8.GetByteCount(label);
4348 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
4349 nativeLabel = nativeLabelStackBytes;
4352 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
4353 nativeLabel[nativeLabelOffset] = 0;
4360 float vSpeed = 1.0f;
4364 int formatByteCount = 0;
4365 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
4372 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
4373 nativeFormat = nativeFormatStackBytes;
4376 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
4377 nativeFormat[nativeFormatOffset] = 0;
4406 int labelByteCount = 0;
4409 labelByteCount = Encoding.UTF8.GetByteCount(label);
4416 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
4417 nativeLabel = nativeLabelStackBytes;
4420 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
4421 nativeLabel[nativeLabelOffset] = 0;
4431 int formatByteCount = 0;
4432 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
4439 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
4440 nativeFormat = nativeFormatStackBytes;
4443 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
4444 nativeFormat[nativeFormatOffset] = 0;
4474 int labelByteCount = 0;
4477 labelByteCount = Encoding.UTF8.GetByteCount(label);
4484 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
4485 nativeLabel = nativeLabelStackBytes;
4488 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
4489 nativeLabel[nativeLabelOffset] = 0;
4498 int formatByteCount = 0;
4499 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
4506 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
4507 nativeFormat = nativeFormatStackBytes;
4510 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
4511 nativeFormat[nativeFormatOffset] = 0;
4542 int labelByteCount = 0;
4545 labelByteCount = Encoding.UTF8.GetByteCount(label);
4552 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
4553 nativeLabel = nativeLabelStackBytes;
4556 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
4557 nativeLabel[nativeLabelOffset] = 0;
4565 int formatByteCount = 0;
4566 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
4573 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
4574 nativeFormat = nativeFormatStackBytes;
4577 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
4578 nativeFormat[nativeFormatOffset] = 0;
4607 public static bool DragFloat3(
string label, ref
Vector3F v,
float vSpeed,
float vMin,
float vMax,
string format)
4610 int labelByteCount = 0;
4613 labelByteCount = Encoding.UTF8.GetByteCount(label);
4620 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
4621 nativeLabel = nativeLabelStackBytes;
4624 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
4625 nativeLabel[nativeLabelOffset] = 0;
4633 int formatByteCount = 0;
4636 formatByteCount = Encoding.UTF8.GetByteCount(format);
4643 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
4644 nativeFormat = nativeFormatStackBytes;
4647 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
4648 nativeFormat[nativeFormatOffset] = 0;
4652 nativeFormat =
null;
4687 int labelByteCount = 0;
4690 labelByteCount = Encoding.UTF8.GetByteCount(label);
4697 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
4698 nativeLabel = nativeLabelStackBytes;
4701 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
4702 nativeLabel[nativeLabelOffset] = 0;
4710 int formatByteCount = 0;
4713 formatByteCount = Encoding.UTF8.GetByteCount(format);
4720 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
4721 nativeFormat = nativeFormatStackBytes;
4724 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
4725 nativeFormat[nativeFormatOffset] = 0;
4729 nativeFormat =
null;
4758 int labelByteCount = 0;
4761 labelByteCount = Encoding.UTF8.GetByteCount(label);
4768 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
4769 nativeLabel = nativeLabelStackBytes;
4772 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
4773 nativeLabel[nativeLabelOffset] = 0;
4780 float vSpeed = 1.0f;
4784 int formatByteCount = 0;
4785 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
4792 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
4793 nativeFormat = nativeFormatStackBytes;
4796 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
4797 nativeFormat[nativeFormatOffset] = 0;
4826 int labelByteCount = 0;
4829 labelByteCount = Encoding.UTF8.GetByteCount(label);
4836 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
4837 nativeLabel = nativeLabelStackBytes;
4840 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
4841 nativeLabel[nativeLabelOffset] = 0;
4851 int formatByteCount = 0;
4852 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
4859 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
4860 nativeFormat = nativeFormatStackBytes;
4863 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
4864 nativeFormat[nativeFormatOffset] = 0;
4894 int labelByteCount = 0;
4897 labelByteCount = Encoding.UTF8.GetByteCount(label);
4904 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
4905 nativeLabel = nativeLabelStackBytes;
4908 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
4909 nativeLabel[nativeLabelOffset] = 0;
4918 int formatByteCount = 0;
4919 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
4926 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
4927 nativeFormat = nativeFormatStackBytes;
4930 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
4931 nativeFormat[nativeFormatOffset] = 0;
4962 int labelByteCount = 0;
4965 labelByteCount = Encoding.UTF8.GetByteCount(label);
4972 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
4973 nativeLabel = nativeLabelStackBytes;
4976 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
4977 nativeLabel[nativeLabelOffset] = 0;
4985 int formatByteCount = 0;
4986 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
4993 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
4994 nativeFormat = nativeFormatStackBytes;
4997 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
4998 nativeFormat[nativeFormatOffset] = 0;
5027 public static bool DragFloat4(
string label, ref
Vector4F v,
float vSpeed,
float vMin,
float vMax,
string format)
5030 int labelByteCount = 0;
5033 labelByteCount = Encoding.UTF8.GetByteCount(label);
5040 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
5041 nativeLabel = nativeLabelStackBytes;
5044 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
5045 nativeLabel[nativeLabelOffset] = 0;
5053 int formatByteCount = 0;
5056 formatByteCount = Encoding.UTF8.GetByteCount(format);
5063 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
5064 nativeFormat = nativeFormatStackBytes;
5067 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
5068 nativeFormat[nativeFormatOffset] = 0;
5072 nativeFormat =
null;
5107 int labelByteCount = 0;
5110 labelByteCount = Encoding.UTF8.GetByteCount(label);
5117 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
5118 nativeLabel = nativeLabelStackBytes;
5121 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
5122 nativeLabel[nativeLabelOffset] = 0;
5130 int formatByteCount = 0;
5133 formatByteCount = Encoding.UTF8.GetByteCount(format);
5140 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
5141 nativeFormat = nativeFormatStackBytes;
5144 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
5145 nativeFormat[nativeFormatOffset] = 0;
5149 nativeFormat =
null;
5176 public static bool DragFloatRange2(
string label, ref
float vCurrentMin, ref
float vCurrentMax)
5179 int labelByteCount = 0;
5182 labelByteCount = Encoding.UTF8.GetByteCount(label);
5189 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
5190 nativeLabel = nativeLabelStackBytes;
5193 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
5194 nativeLabel[nativeLabelOffset] = 0;
5201 float vSpeed = 1.0f;
5205 int formatByteCount = 0;
5206 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
5213 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
5214 nativeFormat = nativeFormatStackBytes;
5217 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
5218 nativeFormat[nativeFormatOffset] = 0;
5219 byte* nativeFormatMax =
null;
5221 fixed (
float* nativeVCurrentMin = &vCurrentMin)
5223 fixed (
float* nativeVCurrentMax = &vCurrentMax)
5225 byte ret =
ImGuiNative.
igDragFloatRange2(nativeLabel, nativeVCurrentMin, nativeVCurrentMax, vSpeed, vMin, vMax, nativeFormat, nativeFormatMax, flag);
5249 public static bool DragFloatRange2(
string label, ref
float vCurrentMin, ref
float vCurrentMax,
float vSpeed)
5252 int labelByteCount = 0;
5255 labelByteCount = Encoding.UTF8.GetByteCount(label);
5262 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
5263 nativeLabel = nativeLabelStackBytes;
5266 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
5267 nativeLabel[nativeLabelOffset] = 0;
5277 int formatByteCount = 0;
5278 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
5285 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
5286 nativeFormat = nativeFormatStackBytes;
5289 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
5290 nativeFormat[nativeFormatOffset] = 0;
5291 byte* nativeFormatMax =
null;
5293 fixed (
float* nativeVCurrentMin = &vCurrentMin)
5295 fixed (
float* nativeVCurrentMax = &vCurrentMax)
5297 byte ret =
ImGuiNative.
igDragFloatRange2(nativeLabel, nativeVCurrentMin, nativeVCurrentMax, vSpeed, vMin, vMax, nativeFormat, nativeFormatMax, flag);
5322 public static bool DragFloatRange2(
string label, ref
float vCurrentMin, ref
float vCurrentMax,
float vSpeed,
float vMin)
5325 int labelByteCount = 0;
5328 labelByteCount = Encoding.UTF8.GetByteCount(label);
5335 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
5336 nativeLabel = nativeLabelStackBytes;
5339 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
5340 nativeLabel[nativeLabelOffset] = 0;
5349 int formatByteCount = 0;
5350 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
5357 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
5358 nativeFormat = nativeFormatStackBytes;
5361 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
5362 nativeFormat[nativeFormatOffset] = 0;
5363 byte* nativeFormatMax =
null;
5365 fixed (
float* nativeVCurrentMin = &vCurrentMin)
5367 fixed (
float* nativeVCurrentMax = &vCurrentMax)
5369 byte ret =
ImGuiNative.
igDragFloatRange2(nativeLabel, nativeVCurrentMin, nativeVCurrentMax, vSpeed, vMin, vMax, nativeFormat, nativeFormatMax, flag);
5395 public static bool DragFloatRange2(
string label, ref
float vCurrentMin, ref
float vCurrentMax,
float vSpeed,
float vMin,
float vMax)
5398 int labelByteCount = 0;
5401 labelByteCount = Encoding.UTF8.GetByteCount(label);
5408 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
5409 nativeLabel = nativeLabelStackBytes;
5412 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
5413 nativeLabel[nativeLabelOffset] = 0;
5421 int formatByteCount = 0;
5422 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
5429 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
5430 nativeFormat = nativeFormatStackBytes;
5433 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
5434 nativeFormat[nativeFormatOffset] = 0;
5435 byte* nativeFormatMax =
null;
5437 fixed (
float* nativeVCurrentMin = &vCurrentMin)
5439 fixed (
float* nativeVCurrentMax = &vCurrentMax)
5441 byte ret =
ImGuiNative.
igDragFloatRange2(nativeLabel, nativeVCurrentMin, nativeVCurrentMax, vSpeed, vMin, vMax, nativeFormat, nativeFormatMax, flag);
5468 public static bool DragFloatRange2(
string label, ref
float vCurrentMin, ref
float vCurrentMax,
float vSpeed,
float vMin,
float vMax,
string format)
5471 int labelByteCount = 0;
5474 labelByteCount = Encoding.UTF8.GetByteCount(label);
5481 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
5482 nativeLabel = nativeLabelStackBytes;
5485 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
5486 nativeLabel[nativeLabelOffset] = 0;
5494 int formatByteCount = 0;
5497 formatByteCount = Encoding.UTF8.GetByteCount(format);
5504 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
5505 nativeFormat = nativeFormatStackBytes;
5508 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
5509 nativeFormat[nativeFormatOffset] = 0;
5513 nativeFormat =
null;
5516 byte* nativeFormatMax =
null;
5518 fixed (
float* nativeVCurrentMin = &vCurrentMin)
5520 fixed (
float* nativeVCurrentMax = &vCurrentMax)
5522 byte ret =
ImGuiNative.
igDragFloatRange2(nativeLabel, nativeVCurrentMin, nativeVCurrentMax, vSpeed, vMin, vMax, nativeFormat, nativeFormatMax, flag);
5550 public static bool DragFloatRange2(
string label, ref
float vCurrentMin, ref
float vCurrentMax,
float vSpeed,
float vMin,
float vMax,
string format,
string formatMax)
5553 int labelByteCount = 0;
5556 labelByteCount = Encoding.UTF8.GetByteCount(label);
5563 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
5564 nativeLabel = nativeLabelStackBytes;
5567 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
5568 nativeLabel[nativeLabelOffset] = 0;
5576 int formatByteCount = 0;
5579 formatByteCount = Encoding.UTF8.GetByteCount(format);
5586 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
5587 nativeFormat = nativeFormatStackBytes;
5590 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
5591 nativeFormat[nativeFormatOffset] = 0;
5595 nativeFormat =
null;
5598 byte* nativeFormatMax;
5599 int formatMaxByteCount = 0;
5600 if (formatMax !=
null)
5602 formatMaxByteCount = Encoding.UTF8.GetByteCount(formatMax);
5605 nativeFormatMax =
Util.
Allocate(formatMaxByteCount + 1);
5609 byte* nativeFormatMaxStackBytes = stackalloc
byte[formatMaxByteCount + 1];
5610 nativeFormatMax = nativeFormatMaxStackBytes;
5613 int nativeFormatMaxOffset =
Util.
GetUtf8(formatMax, nativeFormatMax, formatMaxByteCount);
5614 nativeFormatMax[nativeFormatMaxOffset] = 0;
5618 nativeFormatMax =
null;
5622 fixed (
float* nativeVCurrentMin = &vCurrentMin)
5624 fixed (
float* nativeVCurrentMax = &vCurrentMax)
5626 byte ret =
ImGuiNative.
igDragFloatRange2(nativeLabel, nativeVCurrentMin, nativeVCurrentMax, vSpeed, vMin, vMax, nativeFormat, nativeFormatMax, flag);
5660 public static bool DragFloatRange2(
string label, ref
float vCurrentMin, ref
float vCurrentMax,
float vSpeed,
float vMin,
float vMax,
string format,
string formatMax,
ImGuiSliders flag)
5663 int labelByteCount = 0;
5666 labelByteCount = Encoding.UTF8.GetByteCount(label);
5673 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
5674 nativeLabel = nativeLabelStackBytes;
5677 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
5678 nativeLabel[nativeLabelOffset] = 0;
5686 int formatByteCount = 0;
5689 formatByteCount = Encoding.UTF8.GetByteCount(format);
5696 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
5697 nativeFormat = nativeFormatStackBytes;
5700 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
5701 nativeFormat[nativeFormatOffset] = 0;
5705 nativeFormat =
null;
5708 byte* nativeFormatMax;
5709 int formatMaxByteCount = 0;
5710 if (formatMax !=
null)
5712 formatMaxByteCount = Encoding.UTF8.GetByteCount(formatMax);
5715 nativeFormatMax =
Util.
Allocate(formatMaxByteCount + 1);
5719 byte* nativeFormatMaxStackBytes = stackalloc
byte[formatMaxByteCount + 1];
5720 nativeFormatMax = nativeFormatMaxStackBytes;
5723 int nativeFormatMaxOffset =
Util.
GetUtf8(formatMax, nativeFormatMax, formatMaxByteCount);
5724 nativeFormatMax[nativeFormatMaxOffset] = 0;
5728 nativeFormatMax =
null;
5731 fixed (
float* nativeVCurrentMin = &vCurrentMin)
5733 fixed (
float* nativeVCurrentMax = &vCurrentMax)
5735 byte ret =
ImGuiNative.
igDragFloatRange2(nativeLabel, nativeVCurrentMin, nativeVCurrentMax, vSpeed, vMin, vMax, nativeFormat, nativeFormatMax, flag);
5762 public static bool DragInt(
string label, ref
int v)
5765 int labelByteCount = 0;
5768 labelByteCount = Encoding.UTF8.GetByteCount(label);
5775 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
5776 nativeLabel = nativeLabelStackBytes;
5779 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
5780 nativeLabel[nativeLabelOffset] = 0;
5787 float vSpeed = 1.0f;
5791 int formatByteCount = 0;
5792 formatByteCount = Encoding.UTF8.GetByteCount(
"%d");
5799 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
5800 nativeFormat = nativeFormatStackBytes;
5803 int nativeFormatOffset =
Util.
GetUtf8(
"%d", nativeFormat, formatByteCount);
5804 nativeFormat[nativeFormatOffset] = 0;
5806 fixed (
int* nativeV = &v)
5808 byte ret =
ImGuiNative.
igDragInt(nativeLabel, nativeV, vSpeed, vMin, vMax, nativeFormat, flag);
5830 public static bool DragInt(
string label, ref
int v,
float vSpeed)
5833 int labelByteCount = 0;
5836 labelByteCount = Encoding.UTF8.GetByteCount(label);
5843 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
5844 nativeLabel = nativeLabelStackBytes;
5847 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
5848 nativeLabel[nativeLabelOffset] = 0;
5858 int formatByteCount = 0;
5859 formatByteCount = Encoding.UTF8.GetByteCount(
"%d");
5866 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
5867 nativeFormat = nativeFormatStackBytes;
5870 int nativeFormatOffset =
Util.
GetUtf8(
"%d", nativeFormat, formatByteCount);
5871 nativeFormat[nativeFormatOffset] = 0;
5873 fixed (
int* nativeV = &v)
5875 byte ret =
ImGuiNative.
igDragInt(nativeLabel, nativeV, vSpeed, vMin, vMax, nativeFormat, flag);
5898 public static bool DragInt(
string label, ref
int v,
float vSpeed,
int vMin)
5901 int labelByteCount = 0;
5904 labelByteCount = Encoding.UTF8.GetByteCount(label);
5911 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
5912 nativeLabel = nativeLabelStackBytes;
5915 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
5916 nativeLabel[nativeLabelOffset] = 0;
5925 int formatByteCount = 0;
5926 formatByteCount = Encoding.UTF8.GetByteCount(
"%d");
5933 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
5934 nativeFormat = nativeFormatStackBytes;
5937 int nativeFormatOffset =
Util.
GetUtf8(
"%d", nativeFormat, formatByteCount);
5938 nativeFormat[nativeFormatOffset] = 0;
5940 fixed (
int* nativeV = &v)
5942 byte ret =
ImGuiNative.
igDragInt(nativeLabel, nativeV, vSpeed, vMin, vMax, nativeFormat, flag);
5966 public static bool DragInt(
string label, ref
int v,
float vSpeed,
int vMin,
int vMax)
5969 int labelByteCount = 0;
5972 labelByteCount = Encoding.UTF8.GetByteCount(label);
5979 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
5980 nativeLabel = nativeLabelStackBytes;
5983 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
5984 nativeLabel[nativeLabelOffset] = 0;
5992 int formatByteCount = 0;
5993 formatByteCount = Encoding.UTF8.GetByteCount(
"%d");
6000 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
6001 nativeFormat = nativeFormatStackBytes;
6004 int nativeFormatOffset =
Util.
GetUtf8(
"%d", nativeFormat, formatByteCount);
6005 nativeFormat[nativeFormatOffset] = 0;
6007 fixed (
int* nativeV = &v)
6009 byte ret =
ImGuiNative.
igDragInt(nativeLabel, nativeV, vSpeed, vMin, vMax, nativeFormat, flag);
6034 public static bool DragInt(
string label, ref
int v,
float vSpeed,
int vMin,
int vMax,
string format)
6037 int labelByteCount = 0;
6040 labelByteCount = Encoding.UTF8.GetByteCount(label);
6047 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
6048 nativeLabel = nativeLabelStackBytes;
6051 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
6052 nativeLabel[nativeLabelOffset] = 0;
6060 int formatByteCount = 0;
6063 formatByteCount = Encoding.UTF8.GetByteCount(format);
6070 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
6071 nativeFormat = nativeFormatStackBytes;
6074 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
6075 nativeFormat[nativeFormatOffset] = 0;
6079 nativeFormat =
null;
6083 fixed (
int* nativeV = &v)
6085 byte ret =
ImGuiNative.
igDragInt(nativeLabel, nativeV, vSpeed, vMin, vMax, nativeFormat, flag);
6111 public static bool DragInt(
string label, ref
int v,
float vSpeed,
int vMin,
int vMax,
string format,
ImGuiSliders flag)
6114 int labelByteCount = 0;
6117 labelByteCount = Encoding.UTF8.GetByteCount(label);
6124 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
6125 nativeLabel = nativeLabelStackBytes;
6128 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
6129 nativeLabel[nativeLabelOffset] = 0;
6137 int formatByteCount = 0;
6140 formatByteCount = Encoding.UTF8.GetByteCount(format);
6147 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
6148 nativeFormat = nativeFormatStackBytes;
6151 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
6152 nativeFormat[nativeFormatOffset] = 0;
6156 nativeFormat =
null;
6159 fixed (
int* nativeV = &v)
6161 byte ret =
ImGuiNative.
igDragInt(nativeLabel, nativeV, vSpeed, vMin, vMax, nativeFormat, flag);
6185 int labelByteCount = 0;
6188 labelByteCount = Encoding.UTF8.GetByteCount(label);
6195 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
6196 nativeLabel = nativeLabelStackBytes;
6199 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
6200 nativeLabel[nativeLabelOffset] = 0;
6207 float vSpeed = 1.0f;
6211 int formatByteCount = 0;
6212 formatByteCount = Encoding.UTF8.GetByteCount(
"%d");
6219 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
6220 nativeFormat = nativeFormatStackBytes;
6223 int nativeFormatOffset =
Util.
GetUtf8(
"%d", nativeFormat, formatByteCount);
6224 nativeFormat[nativeFormatOffset] = 0;
6226 fixed (
int* nativeV = &v)
6250 public static bool DragInt2(
string label, ref
int v,
float vSpeed)
6253 int labelByteCount = 0;
6256 labelByteCount = Encoding.UTF8.GetByteCount(label);
6263 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
6264 nativeLabel = nativeLabelStackBytes;
6267 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
6268 nativeLabel[nativeLabelOffset] = 0;
6278 int formatByteCount = 0;
6279 formatByteCount = Encoding.UTF8.GetByteCount(
"%d");
6286 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
6287 nativeFormat = nativeFormatStackBytes;
6290 int nativeFormatOffset =
Util.
GetUtf8(
"%d", nativeFormat, formatByteCount);
6291 nativeFormat[nativeFormatOffset] = 0;
6293 fixed (
int* nativeV = &v)
6318 public static bool DragInt2(
string label, ref
int v,
float vSpeed,
int vMin)
6321 int labelByteCount = 0;
6324 labelByteCount = Encoding.UTF8.GetByteCount(label);
6331 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
6332 nativeLabel = nativeLabelStackBytes;
6335 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
6336 nativeLabel[nativeLabelOffset] = 0;
6345 int formatByteCount = 0;
6346 formatByteCount = Encoding.UTF8.GetByteCount(
"%d");
6353 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
6354 nativeFormat = nativeFormatStackBytes;
6357 int nativeFormatOffset =
Util.
GetUtf8(
"%d", nativeFormat, formatByteCount);
6358 nativeFormat[nativeFormatOffset] = 0;
6360 fixed (
int* nativeV = &v)
6386 public static bool DragInt2(
string label, ref
int v,
float vSpeed,
int vMin,
int vMax)
6389 int labelByteCount = 0;
6392 labelByteCount = Encoding.UTF8.GetByteCount(label);
6399 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
6400 nativeLabel = nativeLabelStackBytes;
6403 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
6404 nativeLabel[nativeLabelOffset] = 0;
6412 int formatByteCount = 0;
6413 formatByteCount = Encoding.UTF8.GetByteCount(
"%d");
6420 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
6421 nativeFormat = nativeFormatStackBytes;
6424 int nativeFormatOffset =
Util.
GetUtf8(
"%d", nativeFormat, formatByteCount);
6425 nativeFormat[nativeFormatOffset] = 0;
6427 fixed (
int* nativeV = &v)
6454 public static bool DragInt2(
string label, ref
int v,
float vSpeed,
int vMin,
int vMax,
string format)
6457 int labelByteCount = 0;
6460 labelByteCount = Encoding.UTF8.GetByteCount(label);
6467 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
6468 nativeLabel = nativeLabelStackBytes;
6471 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
6472 nativeLabel[nativeLabelOffset] = 0;
6480 int formatByteCount = 0;
6483 formatByteCount = Encoding.UTF8.GetByteCount(format);
6490 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
6491 nativeFormat = nativeFormatStackBytes;
6494 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
6495 nativeFormat[nativeFormatOffset] = 0;
6499 nativeFormat =
null;
6503 fixed (
int* nativeV = &v)
6531 public static bool DragInt2(
string label, ref
int v,
float vSpeed,
int vMin,
int vMax,
string format,
ImGuiSliders flag)
6534 int labelByteCount = 0;
6537 labelByteCount = Encoding.UTF8.GetByteCount(label);
6544 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
6545 nativeLabel = nativeLabelStackBytes;
6548 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
6549 nativeLabel[nativeLabelOffset] = 0;
6557 int formatByteCount = 0;
6560 formatByteCount = Encoding.UTF8.GetByteCount(format);
6567 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
6568 nativeFormat = nativeFormatStackBytes;
6571 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
6572 nativeFormat[nativeFormatOffset] = 0;
6576 nativeFormat =
null;
6579 fixed (
int* nativeV = &v)
6605 int labelByteCount = 0;
6608 labelByteCount = Encoding.UTF8.GetByteCount(label);
6615 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
6616 nativeLabel = nativeLabelStackBytes;
6619 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
6620 nativeLabel[nativeLabelOffset] = 0;
6627 float vSpeed = 1.0f;
6631 int formatByteCount = 0;
6632 formatByteCount = Encoding.UTF8.GetByteCount(
"%d");
6639 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
6640 nativeFormat = nativeFormatStackBytes;
6643 int nativeFormatOffset =
Util.
GetUtf8(
"%d", nativeFormat, formatByteCount);
6644 nativeFormat[nativeFormatOffset] = 0;
6646 fixed (
int* nativeV = &v)
6670 public static bool DragInt3(
string label, ref
int v,
float vSpeed)
6673 int labelByteCount = 0;
6676 labelByteCount = Encoding.UTF8.GetByteCount(label);
6683 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
6684 nativeLabel = nativeLabelStackBytes;
6687 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
6688 nativeLabel[nativeLabelOffset] = 0;
6698 int formatByteCount = 0;
6699 formatByteCount = Encoding.UTF8.GetByteCount(
"%d");
6706 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
6707 nativeFormat = nativeFormatStackBytes;
6710 int nativeFormatOffset =
Util.
GetUtf8(
"%d", nativeFormat, formatByteCount);
6711 nativeFormat[nativeFormatOffset] = 0;
6713 fixed (
int* nativeV = &v)
6738 public static bool DragInt3(
string label, ref
int v,
float vSpeed,
int vMin)
6741 int labelByteCount = 0;
6744 labelByteCount = Encoding.UTF8.GetByteCount(label);
6751 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
6752 nativeLabel = nativeLabelStackBytes;
6755 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
6756 nativeLabel[nativeLabelOffset] = 0;
6765 int formatByteCount = 0;
6766 formatByteCount = Encoding.UTF8.GetByteCount(
"%d");
6773 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
6774 nativeFormat = nativeFormatStackBytes;
6777 int nativeFormatOffset =
Util.
GetUtf8(
"%d", nativeFormat, formatByteCount);
6778 nativeFormat[nativeFormatOffset] = 0;
6780 fixed (
int* nativeV = &v)
6806 public static bool DragInt3(
string label, ref
int v,
float vSpeed,
int vMin,
int vMax)
6809 int labelByteCount = 0;
6812 labelByteCount = Encoding.UTF8.GetByteCount(label);
6819 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
6820 nativeLabel = nativeLabelStackBytes;
6823 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
6824 nativeLabel[nativeLabelOffset] = 0;
6832 int formatByteCount = 0;
6833 formatByteCount = Encoding.UTF8.GetByteCount(
"%d");
6840 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
6841 nativeFormat = nativeFormatStackBytes;
6844 int nativeFormatOffset =
Util.
GetUtf8(
"%d", nativeFormat, formatByteCount);
6845 nativeFormat[nativeFormatOffset] = 0;
6847 fixed (
int* nativeV = &v)
6874 public static bool DragInt3(
string label, ref
int v,
float vSpeed,
int vMin,
int vMax,
string format)
6877 int labelByteCount = 0;
6880 labelByteCount = Encoding.UTF8.GetByteCount(label);
6887 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
6888 nativeLabel = nativeLabelStackBytes;
6891 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
6892 nativeLabel[nativeLabelOffset] = 0;
6900 int formatByteCount = 0;
6903 formatByteCount = Encoding.UTF8.GetByteCount(format);
6910 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
6911 nativeFormat = nativeFormatStackBytes;
6914 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
6915 nativeFormat[nativeFormatOffset] = 0;
6919 nativeFormat =
null;
6923 fixed (
int* nativeV = &v)
6951 public static bool DragInt3(
string label, ref
int v,
float vSpeed,
int vMin,
int vMax,
string format,
ImGuiSliders flag)
6954 int labelByteCount = 0;
6957 labelByteCount = Encoding.UTF8.GetByteCount(label);
6964 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
6965 nativeLabel = nativeLabelStackBytes;
6968 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
6969 nativeLabel[nativeLabelOffset] = 0;
6977 int formatByteCount = 0;
6980 formatByteCount = Encoding.UTF8.GetByteCount(format);
6987 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
6988 nativeFormat = nativeFormatStackBytes;
6991 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
6992 nativeFormat[nativeFormatOffset] = 0;
6996 nativeFormat =
null;
6999 fixed (
int* nativeV = &v)
7025 int labelByteCount = 0;
7028 labelByteCount = Encoding.UTF8.GetByteCount(label);
7035 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
7036 nativeLabel = nativeLabelStackBytes;
7039 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
7040 nativeLabel[nativeLabelOffset] = 0;
7047 float vSpeed = 1.0f;
7051 int formatByteCount = 0;
7052 formatByteCount = Encoding.UTF8.GetByteCount(
"%d");
7059 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
7060 nativeFormat = nativeFormatStackBytes;
7063 int nativeFormatOffset =
Util.
GetUtf8(
"%d", nativeFormat, formatByteCount);
7064 nativeFormat[nativeFormatOffset] = 0;
7066 fixed (
int* nativeV = &v)
7090 public static bool DragInt4(
string label, ref
int v,
float vSpeed)
7093 int labelByteCount = 0;
7096 labelByteCount = Encoding.UTF8.GetByteCount(label);
7103 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
7104 nativeLabel = nativeLabelStackBytes;
7107 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
7108 nativeLabel[nativeLabelOffset] = 0;
7118 int formatByteCount = 0;
7119 formatByteCount = Encoding.UTF8.GetByteCount(
"%d");
7126 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
7127 nativeFormat = nativeFormatStackBytes;
7130 int nativeFormatOffset =
Util.
GetUtf8(
"%d", nativeFormat, formatByteCount);
7131 nativeFormat[nativeFormatOffset] = 0;
7133 fixed (
int* nativeV = &v)
7158 public static bool DragInt4(
string label, ref
int v,
float vSpeed,
int vMin)
7161 int labelByteCount = 0;
7164 labelByteCount = Encoding.UTF8.GetByteCount(label);
7171 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
7172 nativeLabel = nativeLabelStackBytes;
7175 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
7176 nativeLabel[nativeLabelOffset] = 0;
7185 int formatByteCount = 0;
7186 formatByteCount = Encoding.UTF8.GetByteCount(
"%d");
7193 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
7194 nativeFormat = nativeFormatStackBytes;
7197 int nativeFormatOffset =
Util.
GetUtf8(
"%d", nativeFormat, formatByteCount);
7198 nativeFormat[nativeFormatOffset] = 0;
7200 fixed (
int* nativeV = &v)
7226 public static bool DragInt4(
string label, ref
int v,
float vSpeed,
int vMin,
int vMax)
7229 int labelByteCount = 0;
7232 labelByteCount = Encoding.UTF8.GetByteCount(label);
7239 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
7240 nativeLabel = nativeLabelStackBytes;
7243 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
7244 nativeLabel[nativeLabelOffset] = 0;
7252 int formatByteCount = 0;
7253 formatByteCount = Encoding.UTF8.GetByteCount(
"%d");
7260 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
7261 nativeFormat = nativeFormatStackBytes;
7264 int nativeFormatOffset =
Util.
GetUtf8(
"%d", nativeFormat, formatByteCount);
7265 nativeFormat[nativeFormatOffset] = 0;
7267 fixed (
int* nativeV = &v)
7294 public static bool DragInt4(
string label, ref
int v,
float vSpeed,
int vMin,
int vMax,
string format)
7297 int labelByteCount = 0;
7300 labelByteCount = Encoding.UTF8.GetByteCount(label);
7307 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
7308 nativeLabel = nativeLabelStackBytes;
7311 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
7312 nativeLabel[nativeLabelOffset] = 0;
7320 int formatByteCount = 0;
7323 formatByteCount = Encoding.UTF8.GetByteCount(format);
7330 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
7331 nativeFormat = nativeFormatStackBytes;
7334 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
7335 nativeFormat[nativeFormatOffset] = 0;
7339 nativeFormat =
null;
7343 fixed (
int* nativeV = &v)
7371 public static bool DragInt4(
string label, ref
int v,
float vSpeed,
int vMin,
int vMax,
string format,
ImGuiSliders flag)
7374 int labelByteCount = 0;
7377 labelByteCount = Encoding.UTF8.GetByteCount(label);
7384 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
7385 nativeLabel = nativeLabelStackBytes;
7388 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
7389 nativeLabel[nativeLabelOffset] = 0;
7397 int formatByteCount = 0;
7400 formatByteCount = Encoding.UTF8.GetByteCount(format);
7407 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
7408 nativeFormat = nativeFormatStackBytes;
7411 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
7412 nativeFormat[nativeFormatOffset] = 0;
7416 nativeFormat =
null;
7419 fixed (
int* nativeV = &v)
7443 public static bool DragIntRange2(
string label, ref
int vCurrentMin, ref
int vCurrentMax)
7446 int labelByteCount = 0;
7449 labelByteCount = Encoding.UTF8.GetByteCount(label);
7456 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
7457 nativeLabel = nativeLabelStackBytes;
7460 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
7461 nativeLabel[nativeLabelOffset] = 0;
7468 float vSpeed = 1.0f;
7472 int formatByteCount = 0;
7473 formatByteCount = Encoding.UTF8.GetByteCount(
"%d");
7480 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
7481 nativeFormat = nativeFormatStackBytes;
7484 int nativeFormatOffset =
Util.
GetUtf8(
"%d", nativeFormat, formatByteCount);
7485 nativeFormat[nativeFormatOffset] = 0;
7486 byte* nativeFormatMax =
null;
7488 fixed (
int* nativeVCurrentMin = &vCurrentMin)
7490 fixed (
int* nativeVCurrentMax = &vCurrentMax)
7492 byte ret =
ImGuiNative.
igDragIntRange2(nativeLabel, nativeVCurrentMin, nativeVCurrentMax, vSpeed, vMin, vMax, nativeFormat, nativeFormatMax, flag);
7516 public static bool DragIntRange2(
string label, ref
int vCurrentMin, ref
int vCurrentMax,
float vSpeed)
7519 int labelByteCount = 0;
7522 labelByteCount = Encoding.UTF8.GetByteCount(label);
7529 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
7530 nativeLabel = nativeLabelStackBytes;
7533 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
7534 nativeLabel[nativeLabelOffset] = 0;
7544 int formatByteCount = 0;
7545 formatByteCount = Encoding.UTF8.GetByteCount(
"%d");
7552 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
7553 nativeFormat = nativeFormatStackBytes;
7556 int nativeFormatOffset =
Util.
GetUtf8(
"%d", nativeFormat, formatByteCount);
7557 nativeFormat[nativeFormatOffset] = 0;
7558 byte* nativeFormatMax =
null;
7560 fixed (
int* nativeVCurrentMin = &vCurrentMin)
7562 fixed (
int* nativeVCurrentMax = &vCurrentMax)
7564 byte ret =
ImGuiNative.
igDragIntRange2(nativeLabel, nativeVCurrentMin, nativeVCurrentMax, vSpeed, vMin, vMax, nativeFormat, nativeFormatMax, flag);
7589 public static bool DragIntRange2(
string label, ref
int vCurrentMin, ref
int vCurrentMax,
float vSpeed,
int vMin)
7592 int labelByteCount = 0;
7595 labelByteCount = Encoding.UTF8.GetByteCount(label);
7602 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
7603 nativeLabel = nativeLabelStackBytes;
7606 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
7607 nativeLabel[nativeLabelOffset] = 0;
7616 int formatByteCount = 0;
7617 formatByteCount = Encoding.UTF8.GetByteCount(
"%d");
7624 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
7625 nativeFormat = nativeFormatStackBytes;
7628 int nativeFormatOffset =
Util.
GetUtf8(
"%d", nativeFormat, formatByteCount);
7629 nativeFormat[nativeFormatOffset] = 0;
7630 byte* nativeFormatMax =
null;
7632 fixed (
int* nativeVCurrentMin = &vCurrentMin)
7634 fixed (
int* nativeVCurrentMax = &vCurrentMax)
7636 byte ret =
ImGuiNative.
igDragIntRange2(nativeLabel, nativeVCurrentMin, nativeVCurrentMax, vSpeed, vMin, vMax, nativeFormat, nativeFormatMax, flag);
7662 public static bool DragIntRange2(
string label, ref
int vCurrentMin, ref
int vCurrentMax,
float vSpeed,
int vMin,
int vMax)
7665 int labelByteCount = 0;
7668 labelByteCount = Encoding.UTF8.GetByteCount(label);
7675 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
7676 nativeLabel = nativeLabelStackBytes;
7679 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
7680 nativeLabel[nativeLabelOffset] = 0;
7688 int formatByteCount = 0;
7689 formatByteCount = Encoding.UTF8.GetByteCount(
"%d");
7696 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
7697 nativeFormat = nativeFormatStackBytes;
7700 int nativeFormatOffset =
Util.
GetUtf8(
"%d", nativeFormat, formatByteCount);
7701 nativeFormat[nativeFormatOffset] = 0;
7702 byte* nativeFormatMax =
null;
7704 fixed (
int* nativeVCurrentMin = &vCurrentMin)
7706 fixed (
int* nativeVCurrentMax = &vCurrentMax)
7708 byte ret =
ImGuiNative.
igDragIntRange2(nativeLabel, nativeVCurrentMin, nativeVCurrentMax, vSpeed, vMin, vMax, nativeFormat, nativeFormatMax, flag);
7735 public static bool DragIntRange2(
string label, ref
int vCurrentMin, ref
int vCurrentMax,
float vSpeed,
int vMin,
int vMax,
string format)
7738 int labelByteCount = 0;
7741 labelByteCount = Encoding.UTF8.GetByteCount(label);
7748 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
7749 nativeLabel = nativeLabelStackBytes;
7752 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
7753 nativeLabel[nativeLabelOffset] = 0;
7761 int formatByteCount = 0;
7764 formatByteCount = Encoding.UTF8.GetByteCount(format);
7771 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
7772 nativeFormat = nativeFormatStackBytes;
7775 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
7776 nativeFormat[nativeFormatOffset] = 0;
7780 nativeFormat =
null;
7783 byte* nativeFormatMax =
null;
7785 fixed (
int* nativeVCurrentMin = &vCurrentMin)
7787 fixed (
int* nativeVCurrentMax = &vCurrentMax)
7789 byte ret =
ImGuiNative.
igDragIntRange2(nativeLabel, nativeVCurrentMin, nativeVCurrentMax, vSpeed, vMin, vMax, nativeFormat, nativeFormatMax, flag);
7817 public static bool DragIntRange2(
string label, ref
int vCurrentMin, ref
int vCurrentMax,
float vSpeed,
int vMin,
int vMax,
string format,
string formatMax)
7820 int labelByteCount = 0;
7823 labelByteCount = Encoding.UTF8.GetByteCount(label);
7830 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
7831 nativeLabel = nativeLabelStackBytes;
7834 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
7835 nativeLabel[nativeLabelOffset] = 0;
7843 int formatByteCount = 0;
7846 formatByteCount = Encoding.UTF8.GetByteCount(format);
7853 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
7854 nativeFormat = nativeFormatStackBytes;
7857 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
7858 nativeFormat[nativeFormatOffset] = 0;
7862 nativeFormat =
null;
7865 byte* nativeFormatMax;
7866 int formatMaxByteCount = 0;
7867 if (formatMax !=
null)
7869 formatMaxByteCount = Encoding.UTF8.GetByteCount(formatMax);
7872 nativeFormatMax =
Util.
Allocate(formatMaxByteCount + 1);
7876 byte* nativeFormatMaxStackBytes = stackalloc
byte[formatMaxByteCount + 1];
7877 nativeFormatMax = nativeFormatMaxStackBytes;
7880 int nativeFormatMaxOffset =
Util.
GetUtf8(formatMax, nativeFormatMax, formatMaxByteCount);
7881 nativeFormatMax[nativeFormatMaxOffset] = 0;
7885 nativeFormatMax =
null;
7889 fixed (
int* nativeVCurrentMin = &vCurrentMin)
7891 fixed (
int* nativeVCurrentMax = &vCurrentMax)
7893 byte ret =
ImGuiNative.
igDragIntRange2(nativeLabel, nativeVCurrentMin, nativeVCurrentMax, vSpeed, vMin, vMax, nativeFormat, nativeFormatMax, flag);
7927 public static bool DragIntRange2(
string label, ref
int vCurrentMin, ref
int vCurrentMax,
float vSpeed,
int vMin,
int vMax,
string format,
string formatMax,
ImGuiSliders flag)
7930 int labelByteCount = 0;
7933 labelByteCount = Encoding.UTF8.GetByteCount(label);
7940 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
7941 nativeLabel = nativeLabelStackBytes;
7944 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
7945 nativeLabel[nativeLabelOffset] = 0;
7953 int formatByteCount = 0;
7956 formatByteCount = Encoding.UTF8.GetByteCount(format);
7963 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
7964 nativeFormat = nativeFormatStackBytes;
7967 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
7968 nativeFormat[nativeFormatOffset] = 0;
7972 nativeFormat =
null;
7975 byte* nativeFormatMax;
7976 int formatMaxByteCount = 0;
7977 if (formatMax !=
null)
7979 formatMaxByteCount = Encoding.UTF8.GetByteCount(formatMax);
7982 nativeFormatMax =
Util.
Allocate(formatMaxByteCount + 1);
7986 byte* nativeFormatMaxStackBytes = stackalloc
byte[formatMaxByteCount + 1];
7987 nativeFormatMax = nativeFormatMaxStackBytes;
7990 int nativeFormatMaxOffset =
Util.
GetUtf8(formatMax, nativeFormatMax, formatMaxByteCount);
7991 nativeFormatMax[nativeFormatMaxOffset] = 0;
7995 nativeFormatMax =
null;
7998 fixed (
int* nativeVCurrentMin = &vCurrentMin)
8000 fixed (
int* nativeVCurrentMax = &vCurrentMax)
8002 byte ret =
ImGuiNative.
igDragIntRange2(nativeLabel, nativeVCurrentMin, nativeVCurrentMax, vSpeed, vMin, vMax, nativeFormat, nativeFormatMax, flag);
8033 int labelByteCount = 0;
8036 labelByteCount = Encoding.UTF8.GetByteCount(label);
8043 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
8044 nativeLabel = nativeLabelStackBytes;
8047 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
8048 nativeLabel[nativeLabelOffset] = 0;
8055 void* nativePData = pData.ToPointer();
8056 float vSpeed = 1.0f;
8059 byte* nativeFormat =
null;
8061 byte ret =
ImGuiNative.
igDragScalar(nativeLabel, dataType, nativePData, vSpeed, pMin, pMax, nativeFormat, flag);
8081 int labelByteCount = 0;
8084 labelByteCount = Encoding.UTF8.GetByteCount(label);
8091 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
8092 nativeLabel = nativeLabelStackBytes;
8095 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
8096 nativeLabel[nativeLabelOffset] = 0;
8103 void* nativePData = pData.ToPointer();
8106 byte* nativeFormat =
null;
8108 byte ret =
ImGuiNative.
igDragScalar(nativeLabel, dataType, nativePData, vSpeed, pMin, pMax, nativeFormat, flag);
8129 int labelByteCount = 0;
8132 labelByteCount = Encoding.UTF8.GetByteCount(label);
8139 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
8140 nativeLabel = nativeLabelStackBytes;
8143 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
8144 nativeLabel[nativeLabelOffset] = 0;
8151 void* nativePData = pData.ToPointer();
8152 void* nativePMin = pMin.ToPointer();
8154 byte* nativeFormat =
null;
8156 byte ret =
ImGuiNative.
igDragScalar(nativeLabel, dataType, nativePData, vSpeed, nativePMin, pMax, nativeFormat, flag);
8178 int labelByteCount = 0;
8181 labelByteCount = Encoding.UTF8.GetByteCount(label);
8188 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
8189 nativeLabel = nativeLabelStackBytes;
8192 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
8193 nativeLabel[nativeLabelOffset] = 0;
8200 void* nativePData = pData.ToPointer();
8201 void* nativePMin = pMin.ToPointer();
8202 void* nativePMax = pMax.ToPointer();
8203 byte* nativeFormat =
null;
8205 byte ret =
ImGuiNative.
igDragScalar(nativeLabel, dataType, nativePData, vSpeed, nativePMin, nativePMax, nativeFormat, flag);
8225 public static bool DragScalar(
string label,
ImGuiDataType dataType, IntPtr pData,
float vSpeed, IntPtr pMin, IntPtr pMax,
string format)
8228 int labelByteCount = 0;
8231 labelByteCount = Encoding.UTF8.GetByteCount(label);
8238 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
8239 nativeLabel = nativeLabelStackBytes;
8242 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
8243 nativeLabel[nativeLabelOffset] = 0;
8250 void* nativePData = pData.ToPointer();
8251 void* nativePMin = pMin.ToPointer();
8252 void* nativePMax = pMax.ToPointer();
8254 int formatByteCount = 0;
8257 formatByteCount = Encoding.UTF8.GetByteCount(format);
8264 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
8265 nativeFormat = nativeFormatStackBytes;
8268 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
8269 nativeFormat[nativeFormatOffset] = 0;
8273 nativeFormat =
null;
8277 byte ret =
ImGuiNative.
igDragScalar(nativeLabel, dataType, nativePData, vSpeed, nativePMin, nativePMax, nativeFormat, flag);
8306 int labelByteCount = 0;
8309 labelByteCount = Encoding.UTF8.GetByteCount(label);
8316 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
8317 nativeLabel = nativeLabelStackBytes;
8320 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
8321 nativeLabel[nativeLabelOffset] = 0;
8328 void* nativePData = pData.ToPointer();
8329 void* nativePMin = pMin.ToPointer();
8330 void* nativePMax = pMax.ToPointer();
8332 int formatByteCount = 0;
8335 formatByteCount = Encoding.UTF8.GetByteCount(format);
8342 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
8343 nativeFormat = nativeFormatStackBytes;
8346 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
8347 nativeFormat[nativeFormatOffset] = 0;
8351 nativeFormat =
null;
8354 byte ret =
ImGuiNative.
igDragScalar(nativeLabel, dataType, nativePData, vSpeed, nativePMin, nativePMax, nativeFormat, flag);
8379 int labelByteCount = 0;
8382 labelByteCount = Encoding.UTF8.GetByteCount(label);
8389 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
8390 nativeLabel = nativeLabelStackBytes;
8393 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
8394 nativeLabel[nativeLabelOffset] = 0;
8401 void* nativePData = pData.ToPointer();
8402 float vSpeed = 1.0f;
8405 byte* nativeFormat =
null;
8407 byte ret =
ImGuiNative.
igDragScalarN(nativeLabel, dataType, nativePData, components, vSpeed, pMin, pMax, nativeFormat, flag);
8428 int labelByteCount = 0;
8431 labelByteCount = Encoding.UTF8.GetByteCount(label);
8438 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
8439 nativeLabel = nativeLabelStackBytes;
8442 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
8443 nativeLabel[nativeLabelOffset] = 0;
8450 void* nativePData = pData.ToPointer();
8453 byte* nativeFormat =
null;
8455 byte ret =
ImGuiNative.
igDragScalarN(nativeLabel, dataType, nativePData, components, vSpeed, pMin, pMax, nativeFormat, flag);
8477 int labelByteCount = 0;
8480 labelByteCount = Encoding.UTF8.GetByteCount(label);
8487 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
8488 nativeLabel = nativeLabelStackBytes;
8491 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
8492 nativeLabel[nativeLabelOffset] = 0;
8499 void* nativePData = pData.ToPointer();
8500 void* nativePMin = pMin.ToPointer();
8502 byte* nativeFormat =
null;
8504 byte ret =
ImGuiNative.
igDragScalarN(nativeLabel, dataType, nativePData, components, vSpeed, nativePMin, pMax, nativeFormat, flag);
8524 public static bool DragScalarN(
string label,
ImGuiDataType dataType, IntPtr pData,
int components,
float vSpeed, IntPtr pMin, IntPtr pMax)
8527 int labelByteCount = 0;
8530 labelByteCount = Encoding.UTF8.GetByteCount(label);
8537 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
8538 nativeLabel = nativeLabelStackBytes;
8541 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
8542 nativeLabel[nativeLabelOffset] = 0;
8549 void* nativePData = pData.ToPointer();
8550 void* nativePMin = pMin.ToPointer();
8551 void* nativePMax = pMax.ToPointer();
8552 byte* nativeFormat =
null;
8554 byte ret =
ImGuiNative.
igDragScalarN(nativeLabel, dataType, nativePData, components, vSpeed, nativePMin, nativePMax, nativeFormat, flag);
8575 public static bool DragScalarN(
string label,
ImGuiDataType dataType, IntPtr pData,
int components,
float vSpeed, IntPtr pMin, IntPtr pMax,
string format)
8578 int labelByteCount = 0;
8581 labelByteCount = Encoding.UTF8.GetByteCount(label);
8588 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
8589 nativeLabel = nativeLabelStackBytes;
8592 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
8593 nativeLabel[nativeLabelOffset] = 0;
8600 void* nativePData = pData.ToPointer();
8601 void* nativePMin = pMin.ToPointer();
8602 void* nativePMax = pMax.ToPointer();
8604 int formatByteCount = 0;
8607 formatByteCount = Encoding.UTF8.GetByteCount(format);
8614 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
8615 nativeFormat = nativeFormatStackBytes;
8618 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
8619 nativeFormat[nativeFormatOffset] = 0;
8623 nativeFormat =
null;
8627 byte ret =
ImGuiNative.
igDragScalarN(nativeLabel, dataType, nativePData, components, vSpeed, nativePMin, nativePMax, nativeFormat, flag);
8657 int labelByteCount = 0;
8660 labelByteCount = Encoding.UTF8.GetByteCount(label);
8667 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
8668 nativeLabel = nativeLabelStackBytes;
8671 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
8672 nativeLabel[nativeLabelOffset] = 0;
8679 void* nativePData = pData.ToPointer();
8680 void* nativePMin = pMin.ToPointer();
8681 void* nativePMax = pMax.ToPointer();
8683 int formatByteCount = 0;
8686 formatByteCount = Encoding.UTF8.GetByteCount(format);
8693 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
8694 nativeFormat = nativeFormatStackBytes;
8697 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
8698 nativeFormat[nativeFormatOffset] = 0;
8702 nativeFormat =
null;
8705 byte ret =
ImGuiNative.
igDragScalarN(nativeLabel, dataType, nativePData, components, vSpeed, nativePMin, nativePMax, nativeFormat, flag);
8890 void* nativePlatformHandle = platformHandle.ToPointer();
8903 fixed (IntPtr* nativePAllocFunc = &pAllocFunc)
8905 fixed (IntPtr* nativePFreeFunc = &pFreeFunc)
8907 fixed (
void** nativePUserData = &pUserData)
8954 float alphaMul = 1.0f;
9009 int columnIndex = -1;
9041 int columnIndex = -1;
9263 int strIdByteCount = 0;
9266 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
9273 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
9274 nativeStrId = nativeStrIdStackBytes;
9277 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
9278 nativeStrId[nativeStrIdOffset] = 0;
9301 void* nativePtrId = ptrId.ToPointer();
9433 float lockThreshold = -1.0f;
9446 float lockThreshold = -1.0f;
9812 int strIdByteCount = 0;
9815 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
9822 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
9823 nativeStrId = nativeStrIdStackBytes;
9826 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
9827 nativeStrId[nativeStrIdOffset] = 0;
9858 int strIdByteCount = 0;
9861 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
9868 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
9869 nativeStrId = nativeStrIdStackBytes;
9872 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
9873 nativeStrId[nativeStrIdOffset] = 0;
9904 int strIdByteCount = 0;
9907 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
9914 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
9915 nativeStrId = nativeStrIdStackBytes;
9918 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
9919 nativeStrId[nativeStrIdOffset] = 0;
9950 int strIdByteCount = 0;
9953 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
9960 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
9961 nativeStrId = nativeStrIdStackBytes;
9964 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
9965 nativeStrId[nativeStrIdOffset] = 0;
9996 int strIdByteCount = 0;
9999 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
10006 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
10007 nativeStrId = nativeStrIdStackBytes;
10010 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
10011 nativeStrId[nativeStrIdOffset] = 0;
10015 nativeStrId =
null;
10032 float indentW = 0.0f;
10054 int labelByteCount = 0;
10057 labelByteCount = Encoding.UTF8.GetByteCount(label);
10064 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
10065 nativeLabel = nativeLabelStackBytes;
10068 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
10069 nativeLabel[nativeLabelOffset] = 0;
10073 nativeLabel =
null;
10077 double stepFast = 0.0;
10078 byte* nativeFormat;
10079 int formatByteCount = 0;
10080 formatByteCount = Encoding.UTF8.GetByteCount(
"%.6f");
10087 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
10088 nativeFormat = nativeFormatStackBytes;
10091 int nativeFormatOffset =
Util.
GetUtf8(
"%.6f", nativeFormat, formatByteCount);
10092 nativeFormat[nativeFormatOffset] = 0;
10094 fixed (
double* nativeV = &v)
10121 int labelByteCount = 0;
10124 labelByteCount = Encoding.UTF8.GetByteCount(label);
10131 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
10132 nativeLabel = nativeLabelStackBytes;
10135 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
10136 nativeLabel[nativeLabelOffset] = 0;
10140 nativeLabel =
null;
10143 double stepFast = 0.0;
10144 byte* nativeFormat;
10145 int formatByteCount = 0;
10146 formatByteCount = Encoding.UTF8.GetByteCount(
"%.6f");
10153 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
10154 nativeFormat = nativeFormatStackBytes;
10157 int nativeFormatOffset =
Util.
GetUtf8(
"%.6f", nativeFormat, formatByteCount);
10158 nativeFormat[nativeFormatOffset] = 0;
10160 fixed (
double* nativeV = &v)
10185 public static bool InputDouble(
string label, ref
double v,
double step,
double stepFast)
10188 int labelByteCount = 0;
10191 labelByteCount = Encoding.UTF8.GetByteCount(label);
10198 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
10199 nativeLabel = nativeLabelStackBytes;
10202 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
10203 nativeLabel[nativeLabelOffset] = 0;
10207 nativeLabel =
null;
10210 byte* nativeFormat;
10211 int formatByteCount = 0;
10212 formatByteCount = Encoding.UTF8.GetByteCount(
"%.6f");
10219 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
10220 nativeFormat = nativeFormatStackBytes;
10223 int nativeFormatOffset =
Util.
GetUtf8(
"%.6f", nativeFormat, formatByteCount);
10224 nativeFormat[nativeFormatOffset] = 0;
10226 fixed (
double* nativeV = &v)
10252 public static bool InputDouble(
string label, ref
double v,
double step,
double stepFast,
string format)
10255 int labelByteCount = 0;
10258 labelByteCount = Encoding.UTF8.GetByteCount(label);
10265 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
10266 nativeLabel = nativeLabelStackBytes;
10269 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
10270 nativeLabel[nativeLabelOffset] = 0;
10274 nativeLabel =
null;
10277 byte* nativeFormat;
10278 int formatByteCount = 0;
10279 if (format !=
null)
10281 formatByteCount = Encoding.UTF8.GetByteCount(format);
10288 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
10289 nativeFormat = nativeFormatStackBytes;
10292 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
10293 nativeFormat[nativeFormatOffset] = 0;
10297 nativeFormat =
null;
10301 fixed (
double* nativeV = &v)
10331 int labelByteCount = 0;
10334 labelByteCount = Encoding.UTF8.GetByteCount(label);
10341 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
10342 nativeLabel = nativeLabelStackBytes;
10345 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
10346 nativeLabel[nativeLabelOffset] = 0;
10350 nativeLabel =
null;
10353 byte* nativeFormat;
10354 int formatByteCount = 0;
10355 if (format !=
null)
10357 formatByteCount = Encoding.UTF8.GetByteCount(format);
10364 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
10365 nativeFormat = nativeFormatStackBytes;
10368 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
10369 nativeFormat[nativeFormatOffset] = 0;
10373 nativeFormat =
null;
10376 fixed (
double* nativeV = &v)
10402 int labelByteCount = 0;
10405 labelByteCount = Encoding.UTF8.GetByteCount(label);
10412 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
10413 nativeLabel = nativeLabelStackBytes;
10416 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
10417 nativeLabel[nativeLabelOffset] = 0;
10421 nativeLabel =
null;
10425 float stepFast = 0.0f;
10426 byte* nativeFormat;
10427 int formatByteCount = 0;
10428 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
10435 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
10436 nativeFormat = nativeFormatStackBytes;
10439 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
10440 nativeFormat[nativeFormatOffset] = 0;
10442 fixed (
float* nativeV = &v)
10469 int labelByteCount = 0;
10472 labelByteCount = Encoding.UTF8.GetByteCount(label);
10479 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
10480 nativeLabel = nativeLabelStackBytes;
10483 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
10484 nativeLabel[nativeLabelOffset] = 0;
10488 nativeLabel =
null;
10491 float stepFast = 0.0f;
10492 byte* nativeFormat;
10493 int formatByteCount = 0;
10494 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
10501 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
10502 nativeFormat = nativeFormatStackBytes;
10505 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
10506 nativeFormat[nativeFormatOffset] = 0;
10508 fixed (
float* nativeV = &v)
10533 public static bool InputFloat(
string label, ref
float v,
float step,
float stepFast)
10536 int labelByteCount = 0;
10539 labelByteCount = Encoding.UTF8.GetByteCount(label);
10546 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
10547 nativeLabel = nativeLabelStackBytes;
10550 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
10551 nativeLabel[nativeLabelOffset] = 0;
10555 nativeLabel =
null;
10558 byte* nativeFormat;
10559 int formatByteCount = 0;
10560 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
10567 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
10568 nativeFormat = nativeFormatStackBytes;
10571 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
10572 nativeFormat[nativeFormatOffset] = 0;
10574 fixed (
float* nativeV = &v)
10600 public static bool InputFloat(
string label, ref
float v,
float step,
float stepFast,
string format)
10603 int labelByteCount = 0;
10606 labelByteCount = Encoding.UTF8.GetByteCount(label);
10613 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
10614 nativeLabel = nativeLabelStackBytes;
10617 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
10618 nativeLabel[nativeLabelOffset] = 0;
10622 nativeLabel =
null;
10625 byte* nativeFormat;
10626 int formatByteCount = 0;
10627 if (format !=
null)
10629 formatByteCount = Encoding.UTF8.GetByteCount(format);
10636 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
10637 nativeFormat = nativeFormatStackBytes;
10640 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
10641 nativeFormat[nativeFormatOffset] = 0;
10645 nativeFormat =
null;
10649 fixed (
float* nativeV = &v)
10679 int labelByteCount = 0;
10682 labelByteCount = Encoding.UTF8.GetByteCount(label);
10689 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
10690 nativeLabel = nativeLabelStackBytes;
10693 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
10694 nativeLabel[nativeLabelOffset] = 0;
10698 nativeLabel =
null;
10701 byte* nativeFormat;
10702 int formatByteCount = 0;
10703 if (format !=
null)
10705 formatByteCount = Encoding.UTF8.GetByteCount(format);
10712 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
10713 nativeFormat = nativeFormatStackBytes;
10716 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
10717 nativeFormat[nativeFormatOffset] = 0;
10721 nativeFormat =
null;
10724 fixed (
float* nativeV = &v)
10750 int labelByteCount = 0;
10753 labelByteCount = Encoding.UTF8.GetByteCount(label);
10760 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
10761 nativeLabel = nativeLabelStackBytes;
10764 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
10765 nativeLabel[nativeLabelOffset] = 0;
10769 nativeLabel =
null;
10772 byte* nativeFormat;
10773 int formatByteCount = 0;
10774 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
10781 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
10782 nativeFormat = nativeFormatStackBytes;
10785 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
10786 nativeFormat[nativeFormatOffset] = 0;
10815 int labelByteCount = 0;
10818 labelByteCount = Encoding.UTF8.GetByteCount(label);
10825 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
10826 nativeLabel = nativeLabelStackBytes;
10829 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
10830 nativeLabel[nativeLabelOffset] = 0;
10834 nativeLabel =
null;
10837 byte* nativeFormat;
10838 int formatByteCount = 0;
10839 if (format !=
null)
10841 formatByteCount = Encoding.UTF8.GetByteCount(format);
10848 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
10849 nativeFormat = nativeFormatStackBytes;
10852 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
10853 nativeFormat[nativeFormatOffset] = 0;
10857 nativeFormat =
null;
10889 int labelByteCount = 0;
10892 labelByteCount = Encoding.UTF8.GetByteCount(label);
10899 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
10900 nativeLabel = nativeLabelStackBytes;
10903 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
10904 nativeLabel[nativeLabelOffset] = 0;
10908 nativeLabel =
null;
10911 byte* nativeFormat;
10912 int formatByteCount = 0;
10913 if (format !=
null)
10915 formatByteCount = Encoding.UTF8.GetByteCount(format);
10922 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
10923 nativeFormat = nativeFormatStackBytes;
10926 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
10927 nativeFormat[nativeFormatOffset] = 0;
10931 nativeFormat =
null;
10960 int labelByteCount = 0;
10963 labelByteCount = Encoding.UTF8.GetByteCount(label);
10970 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
10971 nativeLabel = nativeLabelStackBytes;
10974 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
10975 nativeLabel[nativeLabelOffset] = 0;
10979 nativeLabel =
null;
10982 byte* nativeFormat;
10983 int formatByteCount = 0;
10984 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
10991 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
10992 nativeFormat = nativeFormatStackBytes;
10995 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
10996 nativeFormat[nativeFormatOffset] = 0;
11025 int labelByteCount = 0;
11028 labelByteCount = Encoding.UTF8.GetByteCount(label);
11035 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
11036 nativeLabel = nativeLabelStackBytes;
11039 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
11040 nativeLabel[nativeLabelOffset] = 0;
11044 nativeLabel =
null;
11047 byte* nativeFormat;
11048 int formatByteCount = 0;
11049 if (format !=
null)
11051 formatByteCount = Encoding.UTF8.GetByteCount(format);
11058 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
11059 nativeFormat = nativeFormatStackBytes;
11062 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
11063 nativeFormat[nativeFormatOffset] = 0;
11067 nativeFormat =
null;
11099 int labelByteCount = 0;
11102 labelByteCount = Encoding.UTF8.GetByteCount(label);
11109 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
11110 nativeLabel = nativeLabelStackBytes;
11113 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
11114 nativeLabel[nativeLabelOffset] = 0;
11118 nativeLabel =
null;
11121 byte* nativeFormat;
11122 int formatByteCount = 0;
11123 if (format !=
null)
11125 formatByteCount = Encoding.UTF8.GetByteCount(format);
11132 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
11133 nativeFormat = nativeFormatStackBytes;
11136 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
11137 nativeFormat[nativeFormatOffset] = 0;
11141 nativeFormat =
null;
11170 int labelByteCount = 0;
11173 labelByteCount = Encoding.UTF8.GetByteCount(label);
11180 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
11181 nativeLabel = nativeLabelStackBytes;
11184 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
11185 nativeLabel[nativeLabelOffset] = 0;
11189 nativeLabel =
null;
11192 byte* nativeFormat;
11193 int formatByteCount = 0;
11194 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
11201 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
11202 nativeFormat = nativeFormatStackBytes;
11205 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
11206 nativeFormat[nativeFormatOffset] = 0;
11235 int labelByteCount = 0;
11238 labelByteCount = Encoding.UTF8.GetByteCount(label);
11245 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
11246 nativeLabel = nativeLabelStackBytes;
11249 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
11250 nativeLabel[nativeLabelOffset] = 0;
11254 nativeLabel =
null;
11257 byte* nativeFormat;
11258 int formatByteCount = 0;
11259 if (format !=
null)
11261 formatByteCount = Encoding.UTF8.GetByteCount(format);
11268 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
11269 nativeFormat = nativeFormatStackBytes;
11272 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
11273 nativeFormat[nativeFormatOffset] = 0;
11277 nativeFormat =
null;
11309 int labelByteCount = 0;
11312 labelByteCount = Encoding.UTF8.GetByteCount(label);
11319 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
11320 nativeLabel = nativeLabelStackBytes;
11323 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
11324 nativeLabel[nativeLabelOffset] = 0;
11328 nativeLabel =
null;
11331 byte* nativeFormat;
11332 int formatByteCount = 0;
11333 if (format !=
null)
11335 formatByteCount = Encoding.UTF8.GetByteCount(format);
11342 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
11343 nativeFormat = nativeFormatStackBytes;
11346 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
11347 nativeFormat[nativeFormatOffset] = 0;
11351 nativeFormat =
null;
11380 int labelByteCount = 0;
11383 labelByteCount = Encoding.UTF8.GetByteCount(label);
11390 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
11391 nativeLabel = nativeLabelStackBytes;
11394 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
11395 nativeLabel[nativeLabelOffset] = 0;
11399 nativeLabel =
null;
11403 int stepFast = 100;
11405 fixed (
int* nativeV = &v)
11424 public static bool InputInt(
string label, ref
int v,
int step)
11427 int labelByteCount = 0;
11430 labelByteCount = Encoding.UTF8.GetByteCount(label);
11437 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
11438 nativeLabel = nativeLabelStackBytes;
11441 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
11442 nativeLabel[nativeLabelOffset] = 0;
11446 nativeLabel =
null;
11449 int stepFast = 100;
11451 fixed (
int* nativeV = &v)
11471 public static bool InputInt(
string label, ref
int v,
int step,
int stepFast)
11474 int labelByteCount = 0;
11477 labelByteCount = Encoding.UTF8.GetByteCount(label);
11484 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
11485 nativeLabel = nativeLabelStackBytes;
11488 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
11489 nativeLabel[nativeLabelOffset] = 0;
11493 nativeLabel =
null;
11497 fixed (
int* nativeV = &v)
11521 int labelByteCount = 0;
11524 labelByteCount = Encoding.UTF8.GetByteCount(label);
11531 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
11532 nativeLabel = nativeLabelStackBytes;
11535 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
11536 nativeLabel[nativeLabelOffset] = 0;
11540 nativeLabel =
null;
11543 fixed (
int* nativeV = &v)
11564 int labelByteCount = 0;
11567 labelByteCount = Encoding.UTF8.GetByteCount(label);
11574 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
11575 nativeLabel = nativeLabelStackBytes;
11578 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
11579 nativeLabel[nativeLabelOffset] = 0;
11583 nativeLabel =
null;
11587 fixed (
int* nativeV = &v)
11609 int labelByteCount = 0;
11612 labelByteCount = Encoding.UTF8.GetByteCount(label);
11619 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
11620 nativeLabel = nativeLabelStackBytes;
11623 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
11624 nativeLabel[nativeLabelOffset] = 0;
11628 nativeLabel =
null;
11631 fixed (
int* nativeV = &v)
11652 int labelByteCount = 0;
11655 labelByteCount = Encoding.UTF8.GetByteCount(label);
11662 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
11663 nativeLabel = nativeLabelStackBytes;
11666 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
11667 nativeLabel[nativeLabelOffset] = 0;
11671 nativeLabel =
null;
11675 fixed (
int* nativeV = &v)
11697 int labelByteCount = 0;
11700 labelByteCount = Encoding.UTF8.GetByteCount(label);
11707 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
11708 nativeLabel = nativeLabelStackBytes;
11711 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
11712 nativeLabel[nativeLabelOffset] = 0;
11716 nativeLabel =
null;
11719 fixed (
int* nativeV = &v)
11740 int labelByteCount = 0;
11743 labelByteCount = Encoding.UTF8.GetByteCount(label);
11750 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
11751 nativeLabel = nativeLabelStackBytes;
11754 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
11755 nativeLabel[nativeLabelOffset] = 0;
11759 nativeLabel =
null;
11763 fixed (
int* nativeV = &v)
11785 int labelByteCount = 0;
11788 labelByteCount = Encoding.UTF8.GetByteCount(label);
11795 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
11796 nativeLabel = nativeLabelStackBytes;
11799 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
11800 nativeLabel[nativeLabelOffset] = 0;
11804 nativeLabel =
null;
11807 fixed (
int* nativeV = &v)
11829 int labelByteCount = 0;
11832 labelByteCount = Encoding.UTF8.GetByteCount(label);
11839 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
11840 nativeLabel = nativeLabelStackBytes;
11843 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
11844 nativeLabel[nativeLabelOffset] = 0;
11848 nativeLabel =
null;
11851 void* nativePData = pData.ToPointer();
11852 void* pStep =
null;
11853 void* pStepFast =
null;
11854 byte* nativeFormat =
null;
11876 int labelByteCount = 0;
11879 labelByteCount = Encoding.UTF8.GetByteCount(label);
11886 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
11887 nativeLabel = nativeLabelStackBytes;
11890 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
11891 nativeLabel[nativeLabelOffset] = 0;
11895 nativeLabel =
null;
11898 void* nativePData = pData.ToPointer();
11899 void* nativePStep = pStep.ToPointer();
11900 void* pStepFast =
null;
11901 byte* nativeFormat =
null;
11903 byte ret =
ImGuiNative.
igInputScalar(nativeLabel, dataType, nativePData, nativePStep, pStepFast, nativeFormat, flag);
11924 int labelByteCount = 0;
11927 labelByteCount = Encoding.UTF8.GetByteCount(label);
11934 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
11935 nativeLabel = nativeLabelStackBytes;
11938 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
11939 nativeLabel[nativeLabelOffset] = 0;
11943 nativeLabel =
null;
11946 void* nativePData = pData.ToPointer();
11947 void* nativePStep = pStep.ToPointer();
11948 void* nativePStepFast = pStepFast.ToPointer();
11949 byte* nativeFormat =
null;
11951 byte ret =
ImGuiNative.
igInputScalar(nativeLabel, dataType, nativePData, nativePStep, nativePStepFast, nativeFormat, flag);
11973 int labelByteCount = 0;
11976 labelByteCount = Encoding.UTF8.GetByteCount(label);
11983 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
11984 nativeLabel = nativeLabelStackBytes;
11987 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
11988 nativeLabel[nativeLabelOffset] = 0;
11992 nativeLabel =
null;
11995 void* nativePData = pData.ToPointer();
11996 void* nativePStep = pStep.ToPointer();
11997 void* nativePStepFast = pStepFast.ToPointer();
11998 byte* nativeFormat;
11999 int formatByteCount = 0;
12000 if (format !=
null)
12002 formatByteCount = Encoding.UTF8.GetByteCount(format);
12009 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
12010 nativeFormat = nativeFormatStackBytes;
12013 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
12014 nativeFormat[nativeFormatOffset] = 0;
12018 nativeFormat =
null;
12022 byte ret =
ImGuiNative.
igInputScalar(nativeLabel, dataType, nativePData, nativePStep, nativePStepFast, nativeFormat, flag);
12050 int labelByteCount = 0;
12053 labelByteCount = Encoding.UTF8.GetByteCount(label);
12060 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
12061 nativeLabel = nativeLabelStackBytes;
12064 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
12065 nativeLabel[nativeLabelOffset] = 0;
12069 nativeLabel =
null;
12072 void* nativePData = pData.ToPointer();
12073 void* nativePStep = pStep.ToPointer();
12074 void* nativePStepFast = pStepFast.ToPointer();
12075 byte* nativeFormat;
12076 int formatByteCount = 0;
12077 if (format !=
null)
12079 formatByteCount = Encoding.UTF8.GetByteCount(format);
12086 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
12087 nativeFormat = nativeFormatStackBytes;
12090 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
12091 nativeFormat[nativeFormatOffset] = 0;
12095 nativeFormat =
null;
12098 byte ret =
ImGuiNative.
igInputScalar(nativeLabel, dataType, nativePData, nativePStep, nativePStepFast, nativeFormat, flag);
12123 int labelByteCount = 0;
12126 labelByteCount = Encoding.UTF8.GetByteCount(label);
12133 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
12134 nativeLabel = nativeLabelStackBytes;
12137 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
12138 nativeLabel[nativeLabelOffset] = 0;
12142 nativeLabel =
null;
12145 void* nativePData = pData.ToPointer();
12146 void* pStep =
null;
12147 void* pStepFast =
null;
12148 byte* nativeFormat =
null;
12150 byte ret =
ImGuiNative.
igInputScalarN(nativeLabel, dataType, nativePData, components, pStep, pStepFast, nativeFormat, flag);
12171 int labelByteCount = 0;
12174 labelByteCount = Encoding.UTF8.GetByteCount(label);
12181 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
12182 nativeLabel = nativeLabelStackBytes;
12185 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
12186 nativeLabel[nativeLabelOffset] = 0;
12190 nativeLabel =
null;
12193 void* nativePData = pData.ToPointer();
12194 void* nativePStep = pStep.ToPointer();
12195 void* pStepFast =
null;
12196 byte* nativeFormat =
null;
12198 byte ret =
ImGuiNative.
igInputScalarN(nativeLabel, dataType, nativePData, components, nativePStep, pStepFast, nativeFormat, flag);
12220 int labelByteCount = 0;
12223 labelByteCount = Encoding.UTF8.GetByteCount(label);
12230 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
12231 nativeLabel = nativeLabelStackBytes;
12234 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
12235 nativeLabel[nativeLabelOffset] = 0;
12239 nativeLabel =
null;
12242 void* nativePData = pData.ToPointer();
12243 void* nativePStep = pStep.ToPointer();
12244 void* nativePStepFast = pStepFast.ToPointer();
12245 byte* nativeFormat =
null;
12247 byte ret =
ImGuiNative.
igInputScalarN(nativeLabel, dataType, nativePData, components, nativePStep, nativePStepFast, nativeFormat, flag);
12267 public static bool InputScalarN(
string label,
ImGuiDataType dataType, IntPtr pData,
int components, IntPtr pStep, IntPtr pStepFast,
string format)
12270 int labelByteCount = 0;
12273 labelByteCount = Encoding.UTF8.GetByteCount(label);
12280 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
12281 nativeLabel = nativeLabelStackBytes;
12284 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
12285 nativeLabel[nativeLabelOffset] = 0;
12289 nativeLabel =
null;
12292 void* nativePData = pData.ToPointer();
12293 void* nativePStep = pStep.ToPointer();
12294 void* nativePStepFast = pStepFast.ToPointer();
12295 byte* nativeFormat;
12296 int formatByteCount = 0;
12297 if (format !=
null)
12299 formatByteCount = Encoding.UTF8.GetByteCount(format);
12306 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
12307 nativeFormat = nativeFormatStackBytes;
12310 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
12311 nativeFormat[nativeFormatOffset] = 0;
12315 nativeFormat =
null;
12319 byte ret =
ImGuiNative.
igInputScalarN(nativeLabel, dataType, nativePData, components, nativePStep, nativePStepFast, nativeFormat, flag);
12348 int labelByteCount = 0;
12351 labelByteCount = Encoding.UTF8.GetByteCount(label);
12358 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
12359 nativeLabel = nativeLabelStackBytes;
12362 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
12363 nativeLabel[nativeLabelOffset] = 0;
12367 nativeLabel =
null;
12370 void* nativePData = pData.ToPointer();
12371 void* nativePStep = pStep.ToPointer();
12372 void* nativePStepFast = pStepFast.ToPointer();
12373 byte* nativeFormat;
12374 int formatByteCount = 0;
12375 if (format !=
null)
12377 formatByteCount = Encoding.UTF8.GetByteCount(format);
12384 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
12385 nativeFormat = nativeFormatStackBytes;
12388 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
12389 nativeFormat[nativeFormatOffset] = 0;
12393 nativeFormat =
null;
12396 byte ret =
ImGuiNative.
igInputScalarN(nativeLabel, dataType, nativePData, components, nativePStep, nativePStepFast, nativeFormat, flag);
12419 int strIdByteCount = 0;
12422 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
12429 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
12430 nativeStrId = nativeStrIdStackBytes;
12433 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
12434 nativeStrId[nativeStrIdOffset] = 0;
12438 nativeStrId =
null;
12461 int strIdByteCount = 0;
12464 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
12471 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
12472 nativeStrId = nativeStrIdStackBytes;
12475 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
12476 nativeStrId[nativeStrIdOffset] = 0;
12480 nativeStrId =
null;
12687 byte nativeRepeat = repeat ? (byte) 1 : (
byte) 0;
12723 byte nativeRepeat = repeat ? (byte) 1 : (
byte) 0;
12757 float lockThreshold = -1.0f;
12796 byte nativeClip = clip ? (byte) 1 : (
byte) 0;
12819 fixed (
Vector2F* nativeMousePos = &mousePos)
12845 int strIdByteCount = 0;
12848 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
12855 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
12856 nativeStrId = nativeStrIdStackBytes;
12859 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
12860 nativeStrId[nativeStrIdOffset] = 0;
12864 nativeStrId =
null;
12886 int strIdByteCount = 0;
12889 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
12896 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
12897 nativeStrId = nativeStrIdStackBytes;
12900 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
12901 nativeStrId[nativeStrIdOffset] = 0;
12905 nativeStrId =
null;
13022 int labelByteCount = 0;
13025 labelByteCount = Encoding.UTF8.GetByteCount(label);
13032 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
13033 nativeLabel = nativeLabelStackBytes;
13036 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
13037 nativeLabel[nativeLabelOffset] = 0;
13041 nativeLabel =
null;
13045 int fmtByteCount = 0;
13048 fmtByteCount = Encoding.UTF8.GetByteCount(fmt);
13055 byte* nativeFmtStackBytes = stackalloc
byte[fmtByteCount + 1];
13056 nativeFmt = nativeFmtStackBytes;
13059 int nativeFmtOffset =
Util.
GetUtf8(fmt, nativeFmt, fmtByteCount);
13060 nativeFmt[nativeFmtOffset] = 0;
13087 public static bool ListBox(
string label, ref
int currentItem,
string[] items,
int itemsCount)
13090 int labelByteCount = 0;
13093 labelByteCount = Encoding.UTF8.GetByteCount(label);
13100 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
13101 nativeLabel = nativeLabelStackBytes;
13104 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
13105 nativeLabel[nativeLabelOffset] = 0;
13109 nativeLabel =
null;
13112 int* itemsByteCounts = stackalloc
int[items.Length];
13113 int itemsByteCount = 0;
13114 for (
int i = 0; i < items.Length; i++)
13116 string s = items[i];
13117 itemsByteCounts[i] = Encoding.UTF8.GetByteCount(s);
13118 itemsByteCount += itemsByteCounts[i] + 1;
13121 byte* nativeItemsData = stackalloc
byte[itemsByteCount];
13123 for (
int i = 0; i < items.Length; i++)
13125 string s = items[i];
13126 fixed (
char* sPtr = s)
13128 offset += Encoding.UTF8.GetBytes(sPtr, s.Length, nativeItemsData + offset, itemsByteCounts[i]);
13129 nativeItemsData[offset] = 0;
13134 byte** nativeItems = stackalloc
byte*[items.Length];
13136 for (
int i = 0; i < items.Length; i++)
13138 nativeItems[i] = &nativeItemsData[offset];
13139 offset += itemsByteCounts[i] + 1;
13142 int heightInItems = -1;
13143 fixed (
int* nativeCurrentItem = ¤tItem)
13164 public static bool ListBox(
string label, ref
int currentItem,
string[] items,
int itemsCount,
int heightInItems)
13167 int labelByteCount = 0;
13170 labelByteCount = Encoding.UTF8.GetByteCount(label);
13177 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
13178 nativeLabel = nativeLabelStackBytes;
13181 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
13182 nativeLabel[nativeLabelOffset] = 0;
13186 nativeLabel =
null;
13189 int* itemsByteCounts = stackalloc
int[items.Length];
13190 int itemsByteCount = 0;
13191 for (
int i = 0; i < items.Length; i++)
13193 string s = items[i];
13194 itemsByteCounts[i] = Encoding.UTF8.GetByteCount(s);
13195 itemsByteCount += itemsByteCounts[i] + 1;
13198 byte* nativeItemsData = stackalloc
byte[itemsByteCount];
13200 for (
int i = 0; i < items.Length; i++)
13202 string s = items[i];
13203 fixed (
char* sPtr = s)
13205 offset += Encoding.UTF8.GetBytes(sPtr, s.Length, nativeItemsData + offset, itemsByteCounts[i]);
13206 nativeItemsData[offset] = 0;
13211 byte** nativeItems = stackalloc
byte*[items.Length];
13213 for (
int i = 0; i < items.Length; i++)
13215 nativeItems[i] = &nativeItemsData[offset];
13216 offset += itemsByteCounts[i] + 1;
13219 fixed (
int* nativeCurrentItem = ¤tItem)
13237 byte* nativeIniFilename;
13238 int iniFilenameByteCount = 0;
13239 if (iniFilename !=
null)
13241 iniFilenameByteCount = Encoding.UTF8.GetByteCount(iniFilename);
13244 nativeIniFilename =
Util.
Allocate(iniFilenameByteCount + 1);
13248 byte* nativeIniFilenameStackBytes = stackalloc
byte[iniFilenameByteCount + 1];
13249 nativeIniFilename = nativeIniFilenameStackBytes;
13252 int nativeIniFilenameOffset =
Util.
GetUtf8(iniFilename, nativeIniFilename, iniFilenameByteCount);
13253 nativeIniFilename[nativeIniFilenameOffset] = 0;
13257 nativeIniFilename =
null;
13273 byte* nativeIniData;
13274 int iniDataByteCount = 0;
13275 if (iniData !=
null)
13277 iniDataByteCount = Encoding.UTF8.GetByteCount(iniData);
13284 byte* nativeIniDataStackBytes = stackalloc
byte[iniDataByteCount + 1];
13285 nativeIniData = nativeIniDataStackBytes;
13288 int nativeIniDataOffset =
Util.
GetUtf8(iniData, nativeIniData, iniDataByteCount);
13289 nativeIniData[nativeIniDataOffset] = 0;
13293 nativeIniData =
null;
13311 byte* nativeIniData;
13312 int iniDataByteCount = 0;
13313 if (iniData !=
null)
13315 iniDataByteCount = Encoding.UTF8.GetByteCount(iniData);
13322 byte* nativeIniDataStackBytes = stackalloc
byte[iniDataByteCount + 1];
13323 nativeIniData = nativeIniDataStackBytes;
13326 int nativeIniDataOffset =
Util.
GetUtf8(iniData, nativeIniData, iniDataByteCount);
13327 nativeIniData[nativeIniDataOffset] = 0;
13331 nativeIniData =
null;
13364 int fmtByteCount = 0;
13367 fmtByteCount = Encoding.UTF8.GetByteCount(fmt);
13374 byte* nativeFmtStackBytes = stackalloc
byte[fmtByteCount + 1];
13375 nativeFmt = nativeFmtStackBytes;
13378 int nativeFmtOffset =
Util.
GetUtf8(fmt, nativeFmt, fmtByteCount);
13379 nativeFmt[nativeFmtOffset] = 0;
13398 int autoOpenDepth = -1;
13416 int autoOpenDepth = -1;
13417 byte* nativeFilename =
null;
13427 byte* nativeFilename =
null;
13436 public static void LogToFile(
int autoOpenDepth,
string filename)
13438 byte* nativeFilename;
13439 int filenameByteCount = 0;
13440 if (filename !=
null)
13442 filenameByteCount = Encoding.UTF8.GetByteCount(filename);
13445 nativeFilename =
Util.
Allocate(filenameByteCount + 1);
13449 byte* nativeFilenameStackBytes = stackalloc
byte[filenameByteCount + 1];
13450 nativeFilename = nativeFilenameStackBytes;
13453 int nativeFilenameOffset =
Util.
GetUtf8(filename, nativeFilename, filenameByteCount);
13454 nativeFilename[nativeFilenameOffset] = 0;
13458 nativeFilename =
null;
13473 int autoOpenDepth = -1;
13494 return (IntPtr) ret;
13503 void* nativePtr = ptr.ToPointer();
13515 int labelByteCount = 0;
13518 labelByteCount = Encoding.UTF8.GetByteCount(label);
13525 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
13526 nativeLabel = nativeLabelStackBytes;
13529 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
13530 nativeLabel[nativeLabelOffset] = 0;
13534 nativeLabel =
null;
13537 byte* nativeShortcut =
null;
13558 int labelByteCount = 0;
13561 labelByteCount = Encoding.UTF8.GetByteCount(label);
13568 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
13569 nativeLabel = nativeLabelStackBytes;
13572 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
13573 nativeLabel[nativeLabelOffset] = 0;
13577 nativeLabel =
null;
13580 byte* nativeShortcut;
13581 int shortcutByteCount = 0;
13582 if (shortcut !=
null)
13584 shortcutByteCount = Encoding.UTF8.GetByteCount(shortcut);
13587 nativeShortcut =
Util.
Allocate(shortcutByteCount + 1);
13591 byte* nativeShortcutStackBytes = stackalloc
byte[shortcutByteCount + 1];
13592 nativeShortcut = nativeShortcutStackBytes;
13595 int nativeShortcutOffset =
Util.
GetUtf8(shortcut, nativeShortcut, shortcutByteCount);
13596 nativeShortcut[nativeShortcutOffset] = 0;
13600 nativeShortcut =
null;
13626 public static bool MenuItem(
string label,
string shortcut,
bool selected)
13629 int labelByteCount = 0;
13632 labelByteCount = Encoding.UTF8.GetByteCount(label);
13639 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
13640 nativeLabel = nativeLabelStackBytes;
13643 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
13644 nativeLabel[nativeLabelOffset] = 0;
13648 nativeLabel =
null;
13651 byte* nativeShortcut;
13652 int shortcutByteCount = 0;
13653 if (shortcut !=
null)
13655 shortcutByteCount = Encoding.UTF8.GetByteCount(shortcut);
13658 nativeShortcut =
Util.
Allocate(shortcutByteCount + 1);
13662 byte* nativeShortcutStackBytes = stackalloc
byte[shortcutByteCount + 1];
13663 nativeShortcut = nativeShortcutStackBytes;
13666 int nativeShortcutOffset =
Util.
GetUtf8(shortcut, nativeShortcut, shortcutByteCount);
13667 nativeShortcut[nativeShortcutOffset] = 0;
13671 nativeShortcut =
null;
13674 byte nativeSelected = selected ? (byte) 1 : (
byte) 0;
13698 public static bool MenuItem(
string label,
string shortcut,
bool selected,
bool enabled)
13701 int labelByteCount = 0;
13704 labelByteCount = Encoding.UTF8.GetByteCount(label);
13711 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
13712 nativeLabel = nativeLabelStackBytes;
13715 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
13716 nativeLabel[nativeLabelOffset] = 0;
13720 nativeLabel =
null;
13723 byte* nativeShortcut;
13724 int shortcutByteCount = 0;
13725 if (shortcut !=
null)
13727 shortcutByteCount = Encoding.UTF8.GetByteCount(shortcut);
13730 nativeShortcut =
Util.
Allocate(shortcutByteCount + 1);
13734 byte* nativeShortcutStackBytes = stackalloc
byte[shortcutByteCount + 1];
13735 nativeShortcut = nativeShortcutStackBytes;
13738 int nativeShortcutOffset =
Util.
GetUtf8(shortcut, nativeShortcut, shortcutByteCount);
13739 nativeShortcut[nativeShortcutOffset] = 0;
13743 nativeShortcut =
null;
13746 byte nativeSelected = selected ? (byte) 1 : (
byte) 0;
13747 byte nativeEnabled = enabled ? (byte) 1 : (
byte) 0;
13769 public static bool MenuItem(
string label,
string shortcut, ref
bool pSelected)
13772 int labelByteCount = 0;
13775 labelByteCount = Encoding.UTF8.GetByteCount(label);
13782 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
13783 nativeLabel = nativeLabelStackBytes;
13786 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
13787 nativeLabel[nativeLabelOffset] = 0;
13791 nativeLabel =
null;
13794 byte* nativeShortcut;
13795 int shortcutByteCount = 0;
13796 if (shortcut !=
null)
13798 shortcutByteCount = Encoding.UTF8.GetByteCount(shortcut);
13801 nativeShortcut =
Util.
Allocate(shortcutByteCount + 1);
13805 byte* nativeShortcutStackBytes = stackalloc
byte[shortcutByteCount + 1];
13806 nativeShortcut = nativeShortcutStackBytes;
13809 int nativeShortcutOffset =
Util.
GetUtf8(shortcut, nativeShortcut, shortcutByteCount);
13810 nativeShortcut[nativeShortcutOffset] = 0;
13814 nativeShortcut =
null;
13817 byte nativePSelectedVal = pSelected ? (byte) 1 : (
byte) 0;
13818 byte* nativePSelected = &nativePSelectedVal;
13831 pSelected = nativePSelectedVal != 0;
13843 public static bool MenuItem(
string label,
string shortcut, ref
bool pSelected,
bool enabled)
13846 int labelByteCount = 0;
13849 labelByteCount = Encoding.UTF8.GetByteCount(label);
13856 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
13857 nativeLabel = nativeLabelStackBytes;
13860 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
13861 nativeLabel[nativeLabelOffset] = 0;
13865 nativeLabel =
null;
13868 byte* nativeShortcut;
13869 int shortcutByteCount = 0;
13870 if (shortcut !=
null)
13872 shortcutByteCount = Encoding.UTF8.GetByteCount(shortcut);
13875 nativeShortcut =
Util.
Allocate(shortcutByteCount + 1);
13879 byte* nativeShortcutStackBytes = stackalloc
byte[shortcutByteCount + 1];
13880 nativeShortcut = nativeShortcutStackBytes;
13883 int nativeShortcutOffset =
Util.
GetUtf8(shortcut, nativeShortcut, shortcutByteCount);
13884 nativeShortcut[nativeShortcutOffset] = 0;
13888 nativeShortcut =
null;
13891 byte nativePSelectedVal = pSelected ? (byte) 1 : (
byte) 0;
13892 byte* nativePSelected = &nativePSelectedVal;
13893 byte nativeEnabled = enabled ? (byte) 1 : (
byte) 0;
13905 pSelected = nativePSelectedVal != 0;
13940 int strIdByteCount = 0;
13943 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
13950 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
13951 nativeStrId = nativeStrIdStackBytes;
13954 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
13955 nativeStrId[nativeStrIdOffset] = 0;
13959 nativeStrId =
null;
13978 int strIdByteCount = 0;
13981 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
13988 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
13989 nativeStrId = nativeStrIdStackBytes;
13992 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
13993 nativeStrId[nativeStrIdOffset] = 0;
13997 nativeStrId =
null;
14032 byte* nativeStrId =
null;
14044 int strIdByteCount = 0;
14047 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
14054 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
14055 nativeStrId = nativeStrIdStackBytes;
14058 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
14059 nativeStrId[nativeStrIdOffset] = 0;
14063 nativeStrId =
null;
14082 int strIdByteCount = 0;
14085 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
14092 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
14093 nativeStrId = nativeStrIdStackBytes;
14096 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
14097 nativeStrId[nativeStrIdOffset] = 0;
14101 nativeStrId =
null;
14120 int labelByteCount = 0;
14123 labelByteCount = Encoding.UTF8.GetByteCount(label);
14130 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
14131 nativeLabel = nativeLabelStackBytes;
14134 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
14135 nativeLabel[nativeLabelOffset] = 0;
14139 nativeLabel =
null;
14142 int valuesOffset = 0;
14143 byte* nativeOverlayText =
null;
14144 float scaleMin =
float.MaxValue;
14145 float scaleMax =
float.MaxValue;
14147 int stride =
sizeof(float);
14148 fixed (
float* nativeValues = &values)
14165 public static void PlotHistogram(
string label, ref
float values,
int valuesCount,
int valuesOffset)
14168 int labelByteCount = 0;
14171 labelByteCount = Encoding.UTF8.GetByteCount(label);
14178 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
14179 nativeLabel = nativeLabelStackBytes;
14182 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
14183 nativeLabel[nativeLabelOffset] = 0;
14187 nativeLabel =
null;
14190 byte* nativeOverlayText =
null;
14191 float scaleMin =
float.MaxValue;
14192 float scaleMax =
float.MaxValue;
14194 int stride =
sizeof(float);
14195 fixed (
float* nativeValues = &values)
14213 public static void PlotHistogram(
string label, ref
float values,
int valuesCount,
int valuesOffset,
string overlayText)
14216 int labelByteCount = 0;
14219 labelByteCount = Encoding.UTF8.GetByteCount(label);
14226 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
14227 nativeLabel = nativeLabelStackBytes;
14230 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
14231 nativeLabel[nativeLabelOffset] = 0;
14235 nativeLabel =
null;
14238 byte* nativeOverlayText;
14239 int overlayTextByteCount = 0;
14240 if (overlayText !=
null)
14242 overlayTextByteCount = Encoding.UTF8.GetByteCount(overlayText);
14245 nativeOverlayText =
Util.
Allocate(overlayTextByteCount + 1);
14249 byte* nativeOverlayTextStackBytes = stackalloc
byte[overlayTextByteCount + 1];
14250 nativeOverlayText = nativeOverlayTextStackBytes;
14253 int nativeOverlayTextOffset =
Util.
GetUtf8(overlayText, nativeOverlayText, overlayTextByteCount);
14254 nativeOverlayText[nativeOverlayTextOffset] = 0;
14258 nativeOverlayText =
null;
14261 float scaleMin =
float.MaxValue;
14262 float scaleMax =
float.MaxValue;
14264 int stride =
sizeof(float);
14265 fixed (
float* nativeValues = &values)
14289 public static void PlotHistogram(
string label, ref
float values,
int valuesCount,
int valuesOffset,
string overlayText,
float scaleMin)
14292 int labelByteCount = 0;
14295 labelByteCount = Encoding.UTF8.GetByteCount(label);
14302 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
14303 nativeLabel = nativeLabelStackBytes;
14306 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
14307 nativeLabel[nativeLabelOffset] = 0;
14311 nativeLabel =
null;
14314 byte* nativeOverlayText;
14315 int overlayTextByteCount = 0;
14316 if (overlayText !=
null)
14318 overlayTextByteCount = Encoding.UTF8.GetByteCount(overlayText);
14321 nativeOverlayText =
Util.
Allocate(overlayTextByteCount + 1);
14325 byte* nativeOverlayTextStackBytes = stackalloc
byte[overlayTextByteCount + 1];
14326 nativeOverlayText = nativeOverlayTextStackBytes;
14329 int nativeOverlayTextOffset =
Util.
GetUtf8(overlayText, nativeOverlayText, overlayTextByteCount);
14330 nativeOverlayText[nativeOverlayTextOffset] = 0;
14334 nativeOverlayText =
null;
14337 float scaleMax =
float.MaxValue;
14339 int stride =
sizeof(float);
14340 fixed (
float* nativeValues = &values)
14365 public static void PlotHistogram(
string label, ref
float values,
int valuesCount,
int valuesOffset,
string overlayText,
float scaleMin,
float scaleMax)
14368 int labelByteCount = 0;
14371 labelByteCount = Encoding.UTF8.GetByteCount(label);
14378 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
14379 nativeLabel = nativeLabelStackBytes;
14382 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
14383 nativeLabel[nativeLabelOffset] = 0;
14387 nativeLabel =
null;
14390 byte* nativeOverlayText;
14391 int overlayTextByteCount = 0;
14392 if (overlayText !=
null)
14394 overlayTextByteCount = Encoding.UTF8.GetByteCount(overlayText);
14397 nativeOverlayText =
Util.
Allocate(overlayTextByteCount + 1);
14401 byte* nativeOverlayTextStackBytes = stackalloc
byte[overlayTextByteCount + 1];
14402 nativeOverlayText = nativeOverlayTextStackBytes;
14405 int nativeOverlayTextOffset =
Util.
GetUtf8(overlayText, nativeOverlayText, overlayTextByteCount);
14406 nativeOverlayText[nativeOverlayTextOffset] = 0;
14410 nativeOverlayText =
null;
14414 int stride =
sizeof(float);
14415 fixed (
float* nativeValues = &values)
14441 public static void PlotHistogram(
string label, ref
float values,
int valuesCount,
int valuesOffset,
string overlayText,
float scaleMin,
float scaleMax,
Vector2F graphSize)
14444 int labelByteCount = 0;
14447 labelByteCount = Encoding.UTF8.GetByteCount(label);
14454 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
14455 nativeLabel = nativeLabelStackBytes;
14458 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
14459 nativeLabel[nativeLabelOffset] = 0;
14463 nativeLabel =
null;
14466 byte* nativeOverlayText;
14467 int overlayTextByteCount = 0;
14468 if (overlayText !=
null)
14470 overlayTextByteCount = Encoding.UTF8.GetByteCount(overlayText);
14473 nativeOverlayText =
Util.
Allocate(overlayTextByteCount + 1);
14477 byte* nativeOverlayTextStackBytes = stackalloc
byte[overlayTextByteCount + 1];
14478 nativeOverlayText = nativeOverlayTextStackBytes;
14481 int nativeOverlayTextOffset =
Util.
GetUtf8(overlayText, nativeOverlayText, overlayTextByteCount);
14482 nativeOverlayText[nativeOverlayTextOffset] = 0;
14486 nativeOverlayText =
null;
14489 int stride =
sizeof(float);
14490 fixed (
float* nativeValues = &values)
14517 public static void PlotHistogram(
string label, ref
float values,
int valuesCount,
int valuesOffset,
string overlayText,
float scaleMin,
float scaleMax,
Vector2F graphSize,
int stride)
14520 int labelByteCount = 0;
14523 labelByteCount = Encoding.UTF8.GetByteCount(label);
14530 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
14531 nativeLabel = nativeLabelStackBytes;
14534 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
14535 nativeLabel[nativeLabelOffset] = 0;
14539 nativeLabel =
null;
14542 byte* nativeOverlayText;
14543 int overlayTextByteCount = 0;
14544 if (overlayText !=
null)
14546 overlayTextByteCount = Encoding.UTF8.GetByteCount(overlayText);
14549 nativeOverlayText =
Util.
Allocate(overlayTextByteCount + 1);
14553 byte* nativeOverlayTextStackBytes = stackalloc
byte[overlayTextByteCount + 1];
14554 nativeOverlayText = nativeOverlayTextStackBytes;
14557 int nativeOverlayTextOffset =
Util.
GetUtf8(overlayText, nativeOverlayText, overlayTextByteCount);
14558 nativeOverlayText[nativeOverlayTextOffset] = 0;
14562 nativeOverlayText =
null;
14565 fixed (
float* nativeValues = &values)
14586 public static void PlotLines(
string label, ref
float values,
int valuesCount)
14589 int labelByteCount = 0;
14592 labelByteCount = Encoding.UTF8.GetByteCount(label);
14599 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
14600 nativeLabel = nativeLabelStackBytes;
14603 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
14604 nativeLabel[nativeLabelOffset] = 0;
14608 nativeLabel =
null;
14611 int valuesOffset = 0;
14612 byte* nativeOverlayText =
null;
14613 float scaleMin =
float.MaxValue;
14614 float scaleMax =
float.MaxValue;
14616 int stride =
sizeof(float);
14617 fixed (
float* nativeValues = &values)
14634 public static void PlotLines(
string label, ref
float values,
int valuesCount,
int valuesOffset)
14637 int labelByteCount = 0;
14640 labelByteCount = Encoding.UTF8.GetByteCount(label);
14647 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
14648 nativeLabel = nativeLabelStackBytes;
14651 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
14652 nativeLabel[nativeLabelOffset] = 0;
14656 nativeLabel =
null;
14659 byte* nativeOverlayText =
null;
14660 float scaleMin =
float.MaxValue;
14661 float scaleMax =
float.MaxValue;
14663 int stride =
sizeof(float);
14664 fixed (
float* nativeValues = &values)
14682 public static void PlotLines(
string label, ref
float values,
int valuesCount,
int valuesOffset,
string overlayText)
14685 int labelByteCount = 0;
14688 labelByteCount = Encoding.UTF8.GetByteCount(label);
14695 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
14696 nativeLabel = nativeLabelStackBytes;
14699 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
14700 nativeLabel[nativeLabelOffset] = 0;
14704 nativeLabel =
null;
14707 byte* nativeOverlayText;
14708 int overlayTextByteCount = 0;
14709 if (overlayText !=
null)
14711 overlayTextByteCount = Encoding.UTF8.GetByteCount(overlayText);
14714 nativeOverlayText =
Util.
Allocate(overlayTextByteCount + 1);
14718 byte* nativeOverlayTextStackBytes = stackalloc
byte[overlayTextByteCount + 1];
14719 nativeOverlayText = nativeOverlayTextStackBytes;
14722 int nativeOverlayTextOffset =
Util.
GetUtf8(overlayText, nativeOverlayText, overlayTextByteCount);
14723 nativeOverlayText[nativeOverlayTextOffset] = 0;
14727 nativeOverlayText =
null;
14730 float scaleMin =
float.MaxValue;
14731 float scaleMax =
float.MaxValue;
14733 int stride =
sizeof(float);
14734 fixed (
float* nativeValues = &values)
14758 public static void PlotLines(
string label, ref
float values,
int valuesCount,
int valuesOffset,
string overlayText,
float scaleMin)
14761 int labelByteCount = 0;
14764 labelByteCount = Encoding.UTF8.GetByteCount(label);
14771 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
14772 nativeLabel = nativeLabelStackBytes;
14775 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
14776 nativeLabel[nativeLabelOffset] = 0;
14780 nativeLabel =
null;
14783 byte* nativeOverlayText;
14784 int overlayTextByteCount = 0;
14785 if (overlayText !=
null)
14787 overlayTextByteCount = Encoding.UTF8.GetByteCount(overlayText);
14790 nativeOverlayText =
Util.
Allocate(overlayTextByteCount + 1);
14794 byte* nativeOverlayTextStackBytes = stackalloc
byte[overlayTextByteCount + 1];
14795 nativeOverlayText = nativeOverlayTextStackBytes;
14798 int nativeOverlayTextOffset =
Util.
GetUtf8(overlayText, nativeOverlayText, overlayTextByteCount);
14799 nativeOverlayText[nativeOverlayTextOffset] = 0;
14803 nativeOverlayText =
null;
14806 float scaleMax =
float.MaxValue;
14808 int stride =
sizeof(float);
14809 fixed (
float* nativeValues = &values)
14834 public static void PlotLines(
string label, ref
float values,
int valuesCount,
int valuesOffset,
string overlayText,
float scaleMin,
float scaleMax)
14837 int labelByteCount = 0;
14840 labelByteCount = Encoding.UTF8.GetByteCount(label);
14847 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
14848 nativeLabel = nativeLabelStackBytes;
14851 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
14852 nativeLabel[nativeLabelOffset] = 0;
14856 nativeLabel =
null;
14859 byte* nativeOverlayText;
14860 int overlayTextByteCount = 0;
14861 if (overlayText !=
null)
14863 overlayTextByteCount = Encoding.UTF8.GetByteCount(overlayText);
14866 nativeOverlayText =
Util.
Allocate(overlayTextByteCount + 1);
14870 byte* nativeOverlayTextStackBytes = stackalloc
byte[overlayTextByteCount + 1];
14871 nativeOverlayText = nativeOverlayTextStackBytes;
14874 int nativeOverlayTextOffset =
Util.
GetUtf8(overlayText, nativeOverlayText, overlayTextByteCount);
14875 nativeOverlayText[nativeOverlayTextOffset] = 0;
14879 nativeOverlayText =
null;
14883 int stride =
sizeof(float);
14884 fixed (
float* nativeValues = &values)
14910 public static void PlotLines(
string label, ref
float values,
int valuesCount,
int valuesOffset,
string overlayText,
float scaleMin,
float scaleMax,
Vector2F graphSize)
14913 int labelByteCount = 0;
14916 labelByteCount = Encoding.UTF8.GetByteCount(label);
14923 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
14924 nativeLabel = nativeLabelStackBytes;
14927 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
14928 nativeLabel[nativeLabelOffset] = 0;
14932 nativeLabel =
null;
14935 byte* nativeOverlayText;
14936 int overlayTextByteCount = 0;
14937 if (overlayText !=
null)
14939 overlayTextByteCount = Encoding.UTF8.GetByteCount(overlayText);
14942 nativeOverlayText =
Util.
Allocate(overlayTextByteCount + 1);
14946 byte* nativeOverlayTextStackBytes = stackalloc
byte[overlayTextByteCount + 1];
14947 nativeOverlayText = nativeOverlayTextStackBytes;
14950 int nativeOverlayTextOffset =
Util.
GetUtf8(overlayText, nativeOverlayText, overlayTextByteCount);
14951 nativeOverlayText[nativeOverlayTextOffset] = 0;
14955 nativeOverlayText =
null;
14958 int stride =
sizeof(float);
14959 fixed (
float* nativeValues = &values)
14986 public static void PlotLines(
string label, ref
float values,
int valuesCount,
int valuesOffset,
string overlayText,
float scaleMin,
float scaleMax,
Vector2F graphSize,
int stride)
14989 int labelByteCount = 0;
14992 labelByteCount = Encoding.UTF8.GetByteCount(label);
14999 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
15000 nativeLabel = nativeLabelStackBytes;
15003 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
15004 nativeLabel[nativeLabelOffset] = 0;
15008 nativeLabel =
null;
15011 byte* nativeOverlayText;
15012 int overlayTextByteCount = 0;
15013 if (overlayText !=
null)
15015 overlayTextByteCount = Encoding.UTF8.GetByteCount(overlayText);
15018 nativeOverlayText =
Util.
Allocate(overlayTextByteCount + 1);
15022 byte* nativeOverlayTextStackBytes = stackalloc
byte[overlayTextByteCount + 1];
15023 nativeOverlayText = nativeOverlayTextStackBytes;
15026 int nativeOverlayTextOffset =
Util.
GetUtf8(overlayText, nativeOverlayText, overlayTextByteCount);
15027 nativeOverlayText[nativeOverlayTextOffset] = 0;
15031 nativeOverlayText =
null;
15034 fixed (
float* nativeValues = &values)
15148 byte* nativeOverlay =
null;
15159 byte* nativeOverlay =
null;
15171 byte* nativeOverlay;
15172 int overlayByteCount = 0;
15173 if (overlay !=
null)
15175 overlayByteCount = Encoding.UTF8.GetByteCount(overlay);
15182 byte* nativeOverlayStackBytes = stackalloc
byte[overlayByteCount + 1];
15183 nativeOverlay = nativeOverlayStackBytes;
15186 int nativeOverlayOffset =
Util.
GetUtf8(overlay, nativeOverlay, overlayByteCount);
15187 nativeOverlay[nativeOverlayOffset] = 0;
15191 nativeOverlay =
null;
15207 byte nativeRepeat = repeat ? (byte) 1 : (
byte) 0;
15219 byte nativeIntersectWithCurrentClipRect = intersectWithCurrentClipRect ? (byte) 1 : (
byte) 0;
15240 int strIdByteCount = 0;
15243 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
15250 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
15251 nativeStrId = nativeStrIdStackBytes;
15254 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
15255 nativeStrId[nativeStrIdOffset] = 0;
15259 nativeStrId =
null;
15275 void* nativePtrId = ptrId.ToPointer();
15343 byte nativeTabStop = tabStop ? (byte) 1 : (
byte) 0;
15352 float wrapLocalPosX = 0.0f;
15374 int labelByteCount = 0;
15377 labelByteCount = Encoding.UTF8.GetByteCount(label);
15384 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
15385 nativeLabel = nativeLabelStackBytes;
15388 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
15389 nativeLabel[nativeLabelOffset] = 0;
15393 nativeLabel =
null;
15396 byte nativeActive = active ? (byte) 1 : (
byte) 0;
15416 int labelByteCount = 0;
15419 labelByteCount = Encoding.UTF8.GetByteCount(label);
15426 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
15427 nativeLabel = nativeLabelStackBytes;
15430 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
15431 nativeLabel[nativeLabelOffset] = 0;
15435 nativeLabel =
null;
15438 fixed (
int* nativeV = &v)
15463 void* platformRenderArg =
null;
15464 void* rendererRenderArg =
null;
15474 void* nativePlatformRenderArg = platformRenderArg.ToPointer();
15475 void* rendererRenderArg =
null;
15486 void* nativePlatformRenderArg = platformRenderArg.ToPointer();
15487 void* nativeRendererRenderArg = rendererRenderArg.ToPointer();
15514 float offsetFromStartX = 0.0f;
15515 float spacing = -1.0f;
15525 float spacing = -1.0f;
15534 public static void SameLine(
float offsetFromStartX,
float spacing)
15545 byte* nativeIniFilename;
15546 int iniFilenameByteCount = 0;
15547 if (iniFilename !=
null)
15549 iniFilenameByteCount = Encoding.UTF8.GetByteCount(iniFilename);
15552 nativeIniFilename =
Util.
Allocate(iniFilenameByteCount + 1);
15556 byte* nativeIniFilenameStackBytes = stackalloc
byte[iniFilenameByteCount + 1];
15557 nativeIniFilename = nativeIniFilenameStackBytes;
15560 int nativeIniFilenameOffset =
Util.
GetUtf8(iniFilename, nativeIniFilename, iniFilenameByteCount);
15561 nativeIniFilename[nativeIniFilenameOffset] = 0;
15565 nativeIniFilename =
null;
15581 uint* outIniSize =
null;
15593 fixed (uint* nativeOutIniSize = &outIniSize)
15608 int labelByteCount = 0;
15611 labelByteCount = Encoding.UTF8.GetByteCount(label);
15618 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
15619 nativeLabel = nativeLabelStackBytes;
15622 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
15623 nativeLabel[nativeLabelOffset] = 0;
15627 nativeLabel =
null;
15651 int labelByteCount = 0;
15654 labelByteCount = Encoding.UTF8.GetByteCount(label);
15661 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
15662 nativeLabel = nativeLabelStackBytes;
15665 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
15666 nativeLabel[nativeLabelOffset] = 0;
15670 nativeLabel =
null;
15673 byte nativeSelected = selected ? (byte) 1 : (
byte) 0;
15695 int labelByteCount = 0;
15698 labelByteCount = Encoding.UTF8.GetByteCount(label);
15705 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
15706 nativeLabel = nativeLabelStackBytes;
15709 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
15710 nativeLabel[nativeLabelOffset] = 0;
15714 nativeLabel =
null;
15717 byte nativeSelected = selected ? (byte) 1 : (
byte) 0;
15739 int labelByteCount = 0;
15742 labelByteCount = Encoding.UTF8.GetByteCount(label);
15749 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
15750 nativeLabel = nativeLabelStackBytes;
15753 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
15754 nativeLabel[nativeLabelOffset] = 0;
15758 nativeLabel =
null;
15761 byte nativeSelected = selected ? (byte) 1 : (
byte) 0;
15780 int labelByteCount = 0;
15783 labelByteCount = Encoding.UTF8.GetByteCount(label);
15790 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
15791 nativeLabel = nativeLabelStackBytes;
15794 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
15795 nativeLabel[nativeLabelOffset] = 0;
15799 nativeLabel =
null;
15802 byte nativePSelectedVal = pSelected ? (byte) 1 : (
byte) 0;
15803 byte* nativePSelected = &nativePSelectedVal;
15812 pSelected = nativePSelectedVal != 0;
15826 int labelByteCount = 0;
15829 labelByteCount = Encoding.UTF8.GetByteCount(label);
15836 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
15837 nativeLabel = nativeLabelStackBytes;
15840 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
15841 nativeLabel[nativeLabelOffset] = 0;
15845 nativeLabel =
null;
15848 byte nativePSelectedVal = pSelected ? (byte) 1 : (
byte) 0;
15849 byte* nativePSelected = &nativePSelectedVal;
15857 pSelected = nativePSelectedVal != 0;
15872 int labelByteCount = 0;
15875 labelByteCount = Encoding.UTF8.GetByteCount(label);
15882 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
15883 nativeLabel = nativeLabelStackBytes;
15886 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
15887 nativeLabel[nativeLabelOffset] = 0;
15891 nativeLabel =
null;
15894 byte nativePSelectedVal = pSelected ? (byte) 1 : (
byte) 0;
15895 byte* nativePSelected = &nativePSelectedVal;
15902 pSelected = nativePSelectedVal != 0;
15921 int labelByteCount = 0;
15924 labelByteCount = Encoding.UTF8.GetByteCount(label);
15931 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
15932 nativeLabel = nativeLabelStackBytes;
15935 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
15936 nativeLabel[nativeLabelOffset] = 0;
15940 nativeLabel =
null;
15957 void* userData =
null;
15969 void* nativeUserData = userData.ToPointer();
15980 int textByteCount = 0;
15983 textByteCount = Encoding.UTF8.GetByteCount(text);
15990 byte* nativeTextStackBytes = stackalloc
byte[textByteCount + 1];
15991 nativeText = nativeTextStackBytes;
15994 int nativeTextOffset =
Util.
GetUtf8(text, nativeText, textByteCount);
15995 nativeText[nativeTextOffset] = 0;
16093 int typeByteCount = 0;
16096 typeByteCount = Encoding.UTF8.GetByteCount(type);
16103 byte* nativeTypeStackBytes = stackalloc
byte[typeByteCount + 1];
16104 nativeType = nativeTypeStackBytes;
16107 int nativeTypeOffset =
Util.
GetUtf8(type, nativeType, typeByteCount);
16108 nativeType[nativeTypeOffset] = 0;
16115 void* nativeData = data.ToPointer();
16137 int typeByteCount = 0;
16140 typeByteCount = Encoding.UTF8.GetByteCount(type);
16147 byte* nativeTypeStackBytes = stackalloc
byte[typeByteCount + 1];
16148 nativeType = nativeTypeStackBytes;
16151 int nativeTypeOffset =
Util.
GetUtf8(type, nativeType, typeByteCount);
16152 nativeType[nativeTypeOffset] = 0;
16159 void* nativeData = data.ToPointer();
16218 byte nativeWantCaptureKeyboard = wantCaptureKeyboard ? (byte) 1 : (
byte) 0;
16228 byte nativeWantCaptureMouse = wantCaptureMouse ? (byte) 1 : (
byte) 0;
16238 byte nativeIsOpen = isOpen ? (byte) 1 : (
byte) 0;
16250 byte nativeIsOpen = isOpen ? (byte) 1 : (
byte) 0;
16288 byte nativeCollapsed = collapsed ? (byte) 1 : (
byte) 0;
16300 byte nativeCollapsed = collapsed ? (byte) 1 : (
byte) 0;
16411 void* customCallbackData =
null;
16423 void* customCallbackData =
null;
16436 void* nativeCustomCallbackData = customCallbackData.ToPointer();
16455 float centerXRatio = 0.5f;
16475 float centerYRatio = 0.5f;
16494 float centerXRatio = 0.5f;
16512 float centerYRatio = 0.5f;
16559 byte* nativeTabOrDockedWindowLabel;
16560 int tabOrDockedWindowLabelByteCount = 0;
16561 if (tabOrDockedWindowLabel !=
null)
16563 tabOrDockedWindowLabelByteCount = Encoding.UTF8.GetByteCount(tabOrDockedWindowLabel);
16566 nativeTabOrDockedWindowLabel =
Util.
Allocate(tabOrDockedWindowLabelByteCount + 1);
16570 byte* nativeTabOrDockedWindowLabelStackBytes = stackalloc
byte[tabOrDockedWindowLabelByteCount + 1];
16571 nativeTabOrDockedWindowLabel = nativeTabOrDockedWindowLabelStackBytes;
16574 int nativeTabOrDockedWindowLabelOffset =
Util.
GetUtf8(tabOrDockedWindowLabel, nativeTabOrDockedWindowLabel, tabOrDockedWindowLabelByteCount);
16575 nativeTabOrDockedWindowLabel[nativeTabOrDockedWindowLabelOffset] = 0;
16579 nativeTabOrDockedWindowLabel =
null;
16585 Util.
Free(nativeTabOrDockedWindowLabel);
16596 int fmtByteCount = 0;
16599 fmtByteCount = Encoding.UTF8.GetByteCount(fmt);
16606 byte* nativeFmtStackBytes = stackalloc
byte[fmtByteCount + 1];
16607 nativeFmt = nativeFmtStackBytes;
16610 int nativeFmtOffset =
Util.
GetUtf8(fmt, nativeFmt, fmtByteCount);
16611 nativeFmt[nativeFmtOffset] = 0;
16631 byte nativeCollapsed = collapsed ? (byte) 1 : (
byte) 0;
16643 byte nativeCollapsed = collapsed ? (byte) 1 : (
byte) 0;
16655 int nameByteCount = 0;
16658 nameByteCount = Encoding.UTF8.GetByteCount(name);
16665 byte* nativeNameStackBytes = stackalloc
byte[nameByteCount + 1];
16666 nativeName = nativeNameStackBytes;
16669 int nativeNameOffset =
Util.
GetUtf8(name, nativeName, nameByteCount);
16670 nativeName[nativeNameOffset] = 0;
16677 byte nativeCollapsed = collapsed ? (byte) 1 : (
byte) 0;
16695 int nameByteCount = 0;
16698 nameByteCount = Encoding.UTF8.GetByteCount(name);
16705 byte* nativeNameStackBytes = stackalloc
byte[nameByteCount + 1];
16706 nativeName = nativeNameStackBytes;
16709 int nativeNameOffset =
Util.
GetUtf8(name, nativeName, nameByteCount);
16710 nativeName[nativeNameOffset] = 0;
16717 byte nativeCollapsed = collapsed ? (byte) 1 : (
byte) 0;
16740 int nameByteCount = 0;
16743 nameByteCount = Encoding.UTF8.GetByteCount(name);
16750 byte* nativeNameStackBytes = stackalloc
byte[nameByteCount + 1];
16751 nativeName = nativeNameStackBytes;
16754 int nativeNameOffset =
Util.
GetUtf8(name, nativeName, nameByteCount);
16755 nativeName[nativeNameOffset] = 0;
16806 int nameByteCount = 0;
16809 nameByteCount = Encoding.UTF8.GetByteCount(name);
16816 byte* nativeNameStackBytes = stackalloc
byte[nameByteCount + 1];
16817 nativeName = nativeNameStackBytes;
16820 int nativeNameOffset =
Util.
GetUtf8(name, nativeName, nameByteCount);
16821 nativeName[nativeNameOffset] = 0;
16845 int nameByteCount = 0;
16848 nameByteCount = Encoding.UTF8.GetByteCount(name);
16855 byte* nativeNameStackBytes = stackalloc
byte[nameByteCount + 1];
16856 nativeName = nativeNameStackBytes;
16859 int nativeNameOffset =
Util.
GetUtf8(name, nativeName, nameByteCount);
16860 nativeName[nativeNameOffset] = 0;
16902 int nameByteCount = 0;
16905 nameByteCount = Encoding.UTF8.GetByteCount(name);
16912 byte* nativeNameStackBytes = stackalloc
byte[nameByteCount + 1];
16913 nativeName = nativeNameStackBytes;
16916 int nativeNameOffset =
Util.
GetUtf8(name, nativeName, nameByteCount);
16917 nativeName[nativeNameOffset] = 0;
16941 int nameByteCount = 0;
16944 nameByteCount = Encoding.UTF8.GetByteCount(name);
16951 byte* nativeNameStackBytes = stackalloc
byte[nameByteCount + 1];
16952 nativeName = nativeNameStackBytes;
16955 int nativeNameOffset =
Util.
GetUtf8(name, nativeName, nameByteCount);
16956 nativeName[nativeNameOffset] = 0;
16975 byte* pOpen =
null;
16985 byte nativePOpenVal = pOpen ? (byte) 1 : (
byte) 0;
16986 byte* nativePOpen = &nativePOpenVal;
16988 pOpen = nativePOpenVal != 0;
16996 byte* pOpen =
null;
17006 byte nativePOpenVal = pOpen ? (byte) 1 : (
byte) 0;
17007 byte* nativePOpen = &nativePOpenVal;
17009 pOpen = nativePOpenVal != 0;
17017 byte* pOpen =
null;
17027 byte nativePOpenVal = pOpen ? (byte) 1 : (
byte) 0;
17028 byte* nativePOpen = &nativePOpenVal;
17030 pOpen = nativePOpenVal != 0;
17040 int labelByteCount = 0;
17043 labelByteCount = Encoding.UTF8.GetByteCount(label);
17050 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
17051 nativeLabel = nativeLabelStackBytes;
17054 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
17055 nativeLabel[nativeLabelOffset] = 0;
17059 nativeLabel =
null;
17074 byte* pOpen =
null;
17084 byte nativePOpenVal = pOpen ? (byte) 1 : (
byte) 0;
17085 byte* nativePOpen = &nativePOpenVal;
17087 pOpen = nativePOpenVal != 0;
17095 byte* pOpen =
null;
17105 byte nativePOpenVal = pOpen ? (byte) 1 : (
byte) 0;
17106 byte* nativePOpen = &nativePOpenVal;
17108 pOpen = nativePOpenVal != 0;
17137 int labelByteCount = 0;
17140 labelByteCount = Encoding.UTF8.GetByteCount(label);
17147 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
17148 nativeLabel = nativeLabelStackBytes;
17151 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
17152 nativeLabel[nativeLabelOffset] = 0;
17156 nativeLabel =
null;
17185 int labelByteCount = 0;
17188 labelByteCount = Encoding.UTF8.GetByteCount(label);
17195 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
17196 nativeLabel = nativeLabelStackBytes;
17199 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
17200 nativeLabel[nativeLabelOffset] = 0;
17204 nativeLabel =
null;
17207 float vDegreesMin = -360.0f;
17208 float vDegreesMax = +360.0f;
17209 byte* nativeFormat;
17210 int formatByteCount = 0;
17211 formatByteCount = Encoding.UTF8.GetByteCount(
"%.0f deg");
17218 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
17219 nativeFormat = nativeFormatStackBytes;
17222 int nativeFormatOffset =
Util.
GetUtf8(
"%.0f deg", nativeFormat, formatByteCount);
17223 nativeFormat[nativeFormatOffset] = 0;
17225 fixed (
float* nativeVRad = &vRad)
17249 public static bool SliderAngle(
string label, ref
float vRad,
float vDegreesMin)
17252 int labelByteCount = 0;
17255 labelByteCount = Encoding.UTF8.GetByteCount(label);
17262 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
17263 nativeLabel = nativeLabelStackBytes;
17266 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
17267 nativeLabel[nativeLabelOffset] = 0;
17271 nativeLabel =
null;
17274 float vDegreesMax = +360.0f;
17275 byte* nativeFormat;
17276 int formatByteCount = 0;
17277 formatByteCount = Encoding.UTF8.GetByteCount(
"%.0f deg");
17284 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
17285 nativeFormat = nativeFormatStackBytes;
17288 int nativeFormatOffset =
Util.
GetUtf8(
"%.0f deg", nativeFormat, formatByteCount);
17289 nativeFormat[nativeFormatOffset] = 0;
17291 fixed (
float* nativeVRad = &vRad)
17316 public static bool SliderAngle(
string label, ref
float vRad,
float vDegreesMin,
float vDegreesMax)
17319 int labelByteCount = 0;
17322 labelByteCount = Encoding.UTF8.GetByteCount(label);
17329 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
17330 nativeLabel = nativeLabelStackBytes;
17333 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
17334 nativeLabel[nativeLabelOffset] = 0;
17338 nativeLabel =
null;
17341 byte* nativeFormat;
17342 int formatByteCount = 0;
17343 formatByteCount = Encoding.UTF8.GetByteCount(
"%.0f deg");
17350 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
17351 nativeFormat = nativeFormatStackBytes;
17354 int nativeFormatOffset =
Util.
GetUtf8(
"%.0f deg", nativeFormat, formatByteCount);
17355 nativeFormat[nativeFormatOffset] = 0;
17357 fixed (
float* nativeVRad = &vRad)
17383 public static bool SliderAngle(
string label, ref
float vRad,
float vDegreesMin,
float vDegreesMax,
string format)
17386 int labelByteCount = 0;
17389 labelByteCount = Encoding.UTF8.GetByteCount(label);
17396 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
17397 nativeLabel = nativeLabelStackBytes;
17400 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
17401 nativeLabel[nativeLabelOffset] = 0;
17405 nativeLabel =
null;
17408 byte* nativeFormat;
17409 int formatByteCount = 0;
17410 if (format !=
null)
17412 formatByteCount = Encoding.UTF8.GetByteCount(format);
17419 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
17420 nativeFormat = nativeFormatStackBytes;
17423 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
17424 nativeFormat[nativeFormatOffset] = 0;
17428 nativeFormat =
null;
17432 fixed (
float* nativeVRad = &vRad)
17462 int labelByteCount = 0;
17465 labelByteCount = Encoding.UTF8.GetByteCount(label);
17472 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
17473 nativeLabel = nativeLabelStackBytes;
17476 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
17477 nativeLabel[nativeLabelOffset] = 0;
17481 nativeLabel =
null;
17484 byte* nativeFormat;
17485 int formatByteCount = 0;
17486 if (format !=
null)
17488 formatByteCount = Encoding.UTF8.GetByteCount(format);
17495 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
17496 nativeFormat = nativeFormatStackBytes;
17499 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
17500 nativeFormat[nativeFormatOffset] = 0;
17504 nativeFormat =
null;
17507 fixed (
float* nativeVRad = &vRad)
17532 public static bool SliderFloat(
string label, ref
float v,
float vMin,
float vMax)
17535 int labelByteCount = 0;
17538 labelByteCount = Encoding.UTF8.GetByteCount(label);
17545 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
17546 nativeLabel = nativeLabelStackBytes;
17549 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
17550 nativeLabel[nativeLabelOffset] = 0;
17554 nativeLabel =
null;
17557 byte* nativeFormat;
17558 int formatByteCount = 0;
17559 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
17566 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
17567 nativeFormat = nativeFormatStackBytes;
17570 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
17571 nativeFormat[nativeFormatOffset] = 0;
17573 fixed (
float* nativeV = &v)
17599 public static bool SliderFloat(
string label, ref
float v,
float vMin,
float vMax,
string format)
17602 int labelByteCount = 0;
17605 labelByteCount = Encoding.UTF8.GetByteCount(label);
17612 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
17613 nativeLabel = nativeLabelStackBytes;
17616 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
17617 nativeLabel[nativeLabelOffset] = 0;
17621 nativeLabel =
null;
17624 byte* nativeFormat;
17625 int formatByteCount = 0;
17626 if (format !=
null)
17628 formatByteCount = Encoding.UTF8.GetByteCount(format);
17635 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
17636 nativeFormat = nativeFormatStackBytes;
17639 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
17640 nativeFormat[nativeFormatOffset] = 0;
17644 nativeFormat =
null;
17648 fixed (
float* nativeV = &v)
17678 int labelByteCount = 0;
17681 labelByteCount = Encoding.UTF8.GetByteCount(label);
17688 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
17689 nativeLabel = nativeLabelStackBytes;
17692 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
17693 nativeLabel[nativeLabelOffset] = 0;
17697 nativeLabel =
null;
17700 byte* nativeFormat;
17701 int formatByteCount = 0;
17702 if (format !=
null)
17704 formatByteCount = Encoding.UTF8.GetByteCount(format);
17711 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
17712 nativeFormat = nativeFormatStackBytes;
17715 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
17716 nativeFormat[nativeFormatOffset] = 0;
17720 nativeFormat =
null;
17723 fixed (
float* nativeV = &v)
17751 int labelByteCount = 0;
17754 labelByteCount = Encoding.UTF8.GetByteCount(label);
17761 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
17762 nativeLabel = nativeLabelStackBytes;
17765 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
17766 nativeLabel[nativeLabelOffset] = 0;
17770 nativeLabel =
null;
17773 byte* nativeFormat;
17774 int formatByteCount = 0;
17775 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
17782 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
17783 nativeFormat = nativeFormatStackBytes;
17786 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
17787 nativeFormat[nativeFormatOffset] = 0;
17818 int labelByteCount = 0;
17821 labelByteCount = Encoding.UTF8.GetByteCount(label);
17828 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
17829 nativeLabel = nativeLabelStackBytes;
17832 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
17833 nativeLabel[nativeLabelOffset] = 0;
17837 nativeLabel =
null;
17840 byte* nativeFormat;
17841 int formatByteCount = 0;
17842 if (format !=
null)
17844 formatByteCount = Encoding.UTF8.GetByteCount(format);
17851 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
17852 nativeFormat = nativeFormatStackBytes;
17855 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
17856 nativeFormat[nativeFormatOffset] = 0;
17860 nativeFormat =
null;
17894 int labelByteCount = 0;
17897 labelByteCount = Encoding.UTF8.GetByteCount(label);
17904 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
17905 nativeLabel = nativeLabelStackBytes;
17908 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
17909 nativeLabel[nativeLabelOffset] = 0;
17913 nativeLabel =
null;
17916 byte* nativeFormat;
17917 int formatByteCount = 0;
17918 if (format !=
null)
17920 formatByteCount = Encoding.UTF8.GetByteCount(format);
17927 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
17928 nativeFormat = nativeFormatStackBytes;
17931 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
17932 nativeFormat[nativeFormatOffset] = 0;
17936 nativeFormat =
null;
17967 int labelByteCount = 0;
17970 labelByteCount = Encoding.UTF8.GetByteCount(label);
17977 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
17978 nativeLabel = nativeLabelStackBytes;
17981 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
17982 nativeLabel[nativeLabelOffset] = 0;
17986 nativeLabel =
null;
17989 byte* nativeFormat;
17990 int formatByteCount = 0;
17991 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
17998 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
17999 nativeFormat = nativeFormatStackBytes;
18002 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
18003 nativeFormat[nativeFormatOffset] = 0;
18034 int labelByteCount = 0;
18037 labelByteCount = Encoding.UTF8.GetByteCount(label);
18044 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
18045 nativeLabel = nativeLabelStackBytes;
18048 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
18049 nativeLabel[nativeLabelOffset] = 0;
18053 nativeLabel =
null;
18056 byte* nativeFormat;
18057 int formatByteCount = 0;
18058 if (format !=
null)
18060 formatByteCount = Encoding.UTF8.GetByteCount(format);
18067 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
18068 nativeFormat = nativeFormatStackBytes;
18071 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
18072 nativeFormat[nativeFormatOffset] = 0;
18076 nativeFormat =
null;
18110 int labelByteCount = 0;
18113 labelByteCount = Encoding.UTF8.GetByteCount(label);
18120 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
18121 nativeLabel = nativeLabelStackBytes;
18124 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
18125 nativeLabel[nativeLabelOffset] = 0;
18129 nativeLabel =
null;
18132 byte* nativeFormat;
18133 int formatByteCount = 0;
18134 if (format !=
null)
18136 formatByteCount = Encoding.UTF8.GetByteCount(format);
18143 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
18144 nativeFormat = nativeFormatStackBytes;
18147 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
18148 nativeFormat[nativeFormatOffset] = 0;
18152 nativeFormat =
null;
18183 int labelByteCount = 0;
18186 labelByteCount = Encoding.UTF8.GetByteCount(label);
18193 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
18194 nativeLabel = nativeLabelStackBytes;
18197 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
18198 nativeLabel[nativeLabelOffset] = 0;
18202 nativeLabel =
null;
18205 byte* nativeFormat;
18206 int formatByteCount = 0;
18207 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
18214 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
18215 nativeFormat = nativeFormatStackBytes;
18218 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
18219 nativeFormat[nativeFormatOffset] = 0;
18250 int labelByteCount = 0;
18253 labelByteCount = Encoding.UTF8.GetByteCount(label);
18260 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
18261 nativeLabel = nativeLabelStackBytes;
18264 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
18265 nativeLabel[nativeLabelOffset] = 0;
18269 nativeLabel =
null;
18272 byte* nativeFormat;
18273 int formatByteCount = 0;
18274 if (format !=
null)
18276 formatByteCount = Encoding.UTF8.GetByteCount(format);
18283 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
18284 nativeFormat = nativeFormatStackBytes;
18287 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
18288 nativeFormat[nativeFormatOffset] = 0;
18292 nativeFormat =
null;
18326 int labelByteCount = 0;
18329 labelByteCount = Encoding.UTF8.GetByteCount(label);
18336 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
18337 nativeLabel = nativeLabelStackBytes;
18340 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
18341 nativeLabel[nativeLabelOffset] = 0;
18345 nativeLabel =
null;
18348 byte* nativeFormat;
18349 int formatByteCount = 0;
18350 if (format !=
null)
18352 formatByteCount = Encoding.UTF8.GetByteCount(format);
18359 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
18360 nativeFormat = nativeFormatStackBytes;
18363 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
18364 nativeFormat[nativeFormatOffset] = 0;
18368 nativeFormat =
null;
18396 public static bool SliderInt(
string label, ref
int v,
int vMin,
int vMax)
18399 int labelByteCount = 0;
18402 labelByteCount = Encoding.UTF8.GetByteCount(label);
18409 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
18410 nativeLabel = nativeLabelStackBytes;
18413 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
18414 nativeLabel[nativeLabelOffset] = 0;
18418 nativeLabel =
null;
18421 byte* nativeFormat;
18422 int formatByteCount = 0;
18423 formatByteCount = Encoding.UTF8.GetByteCount(
"%d");
18430 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
18431 nativeFormat = nativeFormatStackBytes;
18434 int nativeFormatOffset =
Util.
GetUtf8(
"%d", nativeFormat, formatByteCount);
18435 nativeFormat[nativeFormatOffset] = 0;
18437 fixed (
int* nativeV = &v)
18463 public static bool SliderInt(
string label, ref
int v,
int vMin,
int vMax,
string format)
18466 int labelByteCount = 0;
18469 labelByteCount = Encoding.UTF8.GetByteCount(label);
18476 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
18477 nativeLabel = nativeLabelStackBytes;
18480 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
18481 nativeLabel[nativeLabelOffset] = 0;
18485 nativeLabel =
null;
18488 byte* nativeFormat;
18489 int formatByteCount = 0;
18490 if (format !=
null)
18492 formatByteCount = Encoding.UTF8.GetByteCount(format);
18499 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
18500 nativeFormat = nativeFormatStackBytes;
18503 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
18504 nativeFormat[nativeFormatOffset] = 0;
18508 nativeFormat =
null;
18512 fixed (
int* nativeV = &v)
18542 int labelByteCount = 0;
18545 labelByteCount = Encoding.UTF8.GetByteCount(label);
18552 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
18553 nativeLabel = nativeLabelStackBytes;
18556 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
18557 nativeLabel[nativeLabelOffset] = 0;
18561 nativeLabel =
null;
18564 byte* nativeFormat;
18565 int formatByteCount = 0;
18566 if (format !=
null)
18568 formatByteCount = Encoding.UTF8.GetByteCount(format);
18575 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
18576 nativeFormat = nativeFormatStackBytes;
18579 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
18580 nativeFormat[nativeFormatOffset] = 0;
18584 nativeFormat =
null;
18587 fixed (
int* nativeV = &v)
18612 public static bool SliderInt2(
string label, ref
int v,
int vMin,
int vMax)
18615 int labelByteCount = 0;
18618 labelByteCount = Encoding.UTF8.GetByteCount(label);
18625 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
18626 nativeLabel = nativeLabelStackBytes;
18629 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
18630 nativeLabel[nativeLabelOffset] = 0;
18634 nativeLabel =
null;
18637 byte* nativeFormat;
18638 int formatByteCount = 0;
18639 formatByteCount = Encoding.UTF8.GetByteCount(
"%d");
18646 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
18647 nativeFormat = nativeFormatStackBytes;
18650 int nativeFormatOffset =
Util.
GetUtf8(
"%d", nativeFormat, formatByteCount);
18651 nativeFormat[nativeFormatOffset] = 0;
18653 fixed (
int* nativeV = &v)
18679 public static bool SliderInt2(
string label, ref
int v,
int vMin,
int vMax,
string format)
18682 int labelByteCount = 0;
18685 labelByteCount = Encoding.UTF8.GetByteCount(label);
18692 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
18693 nativeLabel = nativeLabelStackBytes;
18696 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
18697 nativeLabel[nativeLabelOffset] = 0;
18701 nativeLabel =
null;
18704 byte* nativeFormat;
18705 int formatByteCount = 0;
18706 if (format !=
null)
18708 formatByteCount = Encoding.UTF8.GetByteCount(format);
18715 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
18716 nativeFormat = nativeFormatStackBytes;
18719 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
18720 nativeFormat[nativeFormatOffset] = 0;
18724 nativeFormat =
null;
18728 fixed (
int* nativeV = &v)
18758 int labelByteCount = 0;
18761 labelByteCount = Encoding.UTF8.GetByteCount(label);
18768 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
18769 nativeLabel = nativeLabelStackBytes;
18772 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
18773 nativeLabel[nativeLabelOffset] = 0;
18777 nativeLabel =
null;
18780 byte* nativeFormat;
18781 int formatByteCount = 0;
18782 if (format !=
null)
18784 formatByteCount = Encoding.UTF8.GetByteCount(format);
18791 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
18792 nativeFormat = nativeFormatStackBytes;
18795 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
18796 nativeFormat[nativeFormatOffset] = 0;
18800 nativeFormat =
null;
18803 fixed (
int* nativeV = &v)
18828 public static bool SliderInt3(
string label, ref
int v,
int vMin,
int vMax)
18831 int labelByteCount = 0;
18834 labelByteCount = Encoding.UTF8.GetByteCount(label);
18841 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
18842 nativeLabel = nativeLabelStackBytes;
18845 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
18846 nativeLabel[nativeLabelOffset] = 0;
18850 nativeLabel =
null;
18853 byte* nativeFormat;
18854 int formatByteCount = 0;
18855 formatByteCount = Encoding.UTF8.GetByteCount(
"%d");
18862 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
18863 nativeFormat = nativeFormatStackBytes;
18866 int nativeFormatOffset =
Util.
GetUtf8(
"%d", nativeFormat, formatByteCount);
18867 nativeFormat[nativeFormatOffset] = 0;
18869 fixed (
int* nativeV = &v)
18895 public static bool SliderInt3(
string label, ref
int v,
int vMin,
int vMax,
string format)
18898 int labelByteCount = 0;
18901 labelByteCount = Encoding.UTF8.GetByteCount(label);
18908 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
18909 nativeLabel = nativeLabelStackBytes;
18912 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
18913 nativeLabel[nativeLabelOffset] = 0;
18917 nativeLabel =
null;
18920 byte* nativeFormat;
18921 int formatByteCount = 0;
18922 if (format !=
null)
18924 formatByteCount = Encoding.UTF8.GetByteCount(format);
18931 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
18932 nativeFormat = nativeFormatStackBytes;
18935 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
18936 nativeFormat[nativeFormatOffset] = 0;
18940 nativeFormat =
null;
18944 fixed (
int* nativeV = &v)
18974 int labelByteCount = 0;
18977 labelByteCount = Encoding.UTF8.GetByteCount(label);
18984 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
18985 nativeLabel = nativeLabelStackBytes;
18988 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
18989 nativeLabel[nativeLabelOffset] = 0;
18993 nativeLabel =
null;
18996 byte* nativeFormat;
18997 int formatByteCount = 0;
18998 if (format !=
null)
19000 formatByteCount = Encoding.UTF8.GetByteCount(format);
19007 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
19008 nativeFormat = nativeFormatStackBytes;
19011 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
19012 nativeFormat[nativeFormatOffset] = 0;
19016 nativeFormat =
null;
19019 fixed (
int* nativeV = &v)
19044 public static bool SliderInt4(
string label, ref
int v,
int vMin,
int vMax)
19047 int labelByteCount = 0;
19050 labelByteCount = Encoding.UTF8.GetByteCount(label);
19057 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
19058 nativeLabel = nativeLabelStackBytes;
19061 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
19062 nativeLabel[nativeLabelOffset] = 0;
19066 nativeLabel =
null;
19069 byte* nativeFormat;
19070 int formatByteCount = 0;
19071 formatByteCount = Encoding.UTF8.GetByteCount(
"%d");
19078 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
19079 nativeFormat = nativeFormatStackBytes;
19082 int nativeFormatOffset =
Util.
GetUtf8(
"%d", nativeFormat, formatByteCount);
19083 nativeFormat[nativeFormatOffset] = 0;
19085 fixed (
int* nativeV = &v)
19111 public static bool SliderInt4(
string label, ref
int v,
int vMin,
int vMax,
string format)
19114 int labelByteCount = 0;
19117 labelByteCount = Encoding.UTF8.GetByteCount(label);
19124 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
19125 nativeLabel = nativeLabelStackBytes;
19128 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
19129 nativeLabel[nativeLabelOffset] = 0;
19133 nativeLabel =
null;
19136 byte* nativeFormat;
19137 int formatByteCount = 0;
19138 if (format !=
null)
19140 formatByteCount = Encoding.UTF8.GetByteCount(format);
19147 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
19148 nativeFormat = nativeFormatStackBytes;
19151 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
19152 nativeFormat[nativeFormatOffset] = 0;
19156 nativeFormat =
null;
19160 fixed (
int* nativeV = &v)
19190 int labelByteCount = 0;
19193 labelByteCount = Encoding.UTF8.GetByteCount(label);
19200 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
19201 nativeLabel = nativeLabelStackBytes;
19204 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
19205 nativeLabel[nativeLabelOffset] = 0;
19209 nativeLabel =
null;
19212 byte* nativeFormat;
19213 int formatByteCount = 0;
19214 if (format !=
null)
19216 formatByteCount = Encoding.UTF8.GetByteCount(format);
19223 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
19224 nativeFormat = nativeFormatStackBytes;
19227 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
19228 nativeFormat[nativeFormatOffset] = 0;
19232 nativeFormat =
null;
19235 fixed (
int* nativeV = &v)
19264 int labelByteCount = 0;
19267 labelByteCount = Encoding.UTF8.GetByteCount(label);
19274 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
19275 nativeLabel = nativeLabelStackBytes;
19278 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
19279 nativeLabel[nativeLabelOffset] = 0;
19283 nativeLabel =
null;
19286 void* nativePData = pData.ToPointer();
19287 void* nativePMin = pMin.ToPointer();
19288 void* nativePMax = pMax.ToPointer();
19289 byte* nativeFormat =
null;
19313 int labelByteCount = 0;
19316 labelByteCount = Encoding.UTF8.GetByteCount(label);
19323 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
19324 nativeLabel = nativeLabelStackBytes;
19327 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
19328 nativeLabel[nativeLabelOffset] = 0;
19332 nativeLabel =
null;
19335 void* nativePData = pData.ToPointer();
19336 void* nativePMin = pMin.ToPointer();
19337 void* nativePMax = pMax.ToPointer();
19338 byte* nativeFormat;
19339 int formatByteCount = 0;
19340 if (format !=
null)
19342 formatByteCount = Encoding.UTF8.GetByteCount(format);
19349 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
19350 nativeFormat = nativeFormatStackBytes;
19353 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
19354 nativeFormat[nativeFormatOffset] = 0;
19358 nativeFormat =
null;
19390 int labelByteCount = 0;
19393 labelByteCount = Encoding.UTF8.GetByteCount(label);
19400 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
19401 nativeLabel = nativeLabelStackBytes;
19404 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
19405 nativeLabel[nativeLabelOffset] = 0;
19409 nativeLabel =
null;
19412 void* nativePData = pData.ToPointer();
19413 void* nativePMin = pMin.ToPointer();
19414 void* nativePMax = pMax.ToPointer();
19415 byte* nativeFormat;
19416 int formatByteCount = 0;
19417 if (format !=
null)
19419 formatByteCount = Encoding.UTF8.GetByteCount(format);
19426 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
19427 nativeFormat = nativeFormatStackBytes;
19430 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
19431 nativeFormat[nativeFormatOffset] = 0;
19435 nativeFormat =
null;
19465 int labelByteCount = 0;
19468 labelByteCount = Encoding.UTF8.GetByteCount(label);
19475 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
19476 nativeLabel = nativeLabelStackBytes;
19479 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
19480 nativeLabel[nativeLabelOffset] = 0;
19484 nativeLabel =
null;
19487 void* nativePData = pData.ToPointer();
19488 void* nativePMin = pMin.ToPointer();
19489 void* nativePMax = pMax.ToPointer();
19490 byte* nativeFormat =
null;
19492 byte ret =
ImGuiNative.
igSliderScalarN(nativeLabel, dataType, nativePData, components, nativePMin, nativePMax, nativeFormat, flag);
19515 int labelByteCount = 0;
19518 labelByteCount = Encoding.UTF8.GetByteCount(label);
19525 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
19526 nativeLabel = nativeLabelStackBytes;
19529 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
19530 nativeLabel[nativeLabelOffset] = 0;
19534 nativeLabel =
null;
19537 void* nativePData = pData.ToPointer();
19538 void* nativePMin = pMin.ToPointer();
19539 void* nativePMax = pMax.ToPointer();
19540 byte* nativeFormat;
19541 int formatByteCount = 0;
19542 if (format !=
null)
19544 formatByteCount = Encoding.UTF8.GetByteCount(format);
19551 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
19552 nativeFormat = nativeFormatStackBytes;
19555 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
19556 nativeFormat[nativeFormatOffset] = 0;
19560 nativeFormat =
null;
19564 byte ret =
ImGuiNative.
igSliderScalarN(nativeLabel, dataType, nativePData, components, nativePMin, nativePMax, nativeFormat, flag);
19593 int labelByteCount = 0;
19596 labelByteCount = Encoding.UTF8.GetByteCount(label);
19603 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
19604 nativeLabel = nativeLabelStackBytes;
19607 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
19608 nativeLabel[nativeLabelOffset] = 0;
19612 nativeLabel =
null;
19615 void* nativePData = pData.ToPointer();
19616 void* nativePMin = pMin.ToPointer();
19617 void* nativePMax = pMax.ToPointer();
19618 byte* nativeFormat;
19619 int formatByteCount = 0;
19620 if (format !=
null)
19622 formatByteCount = Encoding.UTF8.GetByteCount(format);
19629 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
19630 nativeFormat = nativeFormatStackBytes;
19633 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
19634 nativeFormat[nativeFormatOffset] = 0;
19638 nativeFormat =
null;
19641 byte ret =
ImGuiNative.
igSliderScalarN(nativeLabel, dataType, nativePData, components, nativePMin, nativePMax, nativeFormat, flag);
19663 int labelByteCount = 0;
19666 labelByteCount = Encoding.UTF8.GetByteCount(label);
19673 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
19674 nativeLabel = nativeLabelStackBytes;
19677 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
19678 nativeLabel[nativeLabelOffset] = 0;
19682 nativeLabel =
null;
19767 int labelByteCount = 0;
19770 labelByteCount = Encoding.UTF8.GetByteCount(label);
19777 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
19778 nativeLabel = nativeLabelStackBytes;
19781 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
19782 nativeLabel[nativeLabelOffset] = 0;
19786 nativeLabel =
null;
19808 int labelByteCount = 0;
19811 labelByteCount = Encoding.UTF8.GetByteCount(label);
19818 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
19819 nativeLabel = nativeLabelStackBytes;
19822 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
19823 nativeLabel[nativeLabelOffset] = 0;
19827 nativeLabel =
null;
19930 int labelByteCount = 0;
19933 labelByteCount = Encoding.UTF8.GetByteCount(label);
19940 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
19941 nativeLabel = nativeLabelStackBytes;
19944 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
19945 nativeLabel[nativeLabelOffset] = 0;
19949 nativeLabel =
null;
19983 float minRowHeight = 0.0f;
19993 float minRowHeight = 0.0f;
20036 byte nativeV = v ? (byte) 1 : (
byte) 0;
20058 int labelByteCount = 0;
20061 labelByteCount = Encoding.UTF8.GetByteCount(label);
20068 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
20069 nativeLabel = nativeLabelStackBytes;
20072 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
20073 nativeLabel[nativeLabelOffset] = 0;
20077 nativeLabel =
null;
20081 float initWidthOrWeight = 0.0f;
20098 int labelByteCount = 0;
20101 labelByteCount = Encoding.UTF8.GetByteCount(label);
20108 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
20109 nativeLabel = nativeLabelStackBytes;
20112 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
20113 nativeLabel[nativeLabelOffset] = 0;
20117 nativeLabel =
null;
20120 float initWidthOrWeight = 0.0f;
20138 int labelByteCount = 0;
20141 labelByteCount = Encoding.UTF8.GetByteCount(label);
20148 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
20149 nativeLabel = nativeLabelStackBytes;
20152 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
20153 nativeLabel[nativeLabelOffset] = 0;
20157 nativeLabel =
null;
20178 int labelByteCount = 0;
20181 labelByteCount = Encoding.UTF8.GetByteCount(label);
20188 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
20189 nativeLabel = nativeLabelStackBytes;
20192 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
20193 nativeLabel[nativeLabelOffset] = 0;
20197 nativeLabel =
null;
20224 int fmtByteCount = 0;
20227 fmtByteCount = Encoding.UTF8.GetByteCount(fmt);
20234 byte* nativeFmtStackBytes = stackalloc
byte[fmtByteCount + 1];
20235 nativeFmt = nativeFmtStackBytes;
20238 int nativeFmtOffset =
Util.
GetUtf8(fmt, nativeFmt, fmtByteCount);
20239 nativeFmt[nativeFmtOffset] = 0;
20261 int fmtByteCount = 0;
20264 fmtByteCount = Encoding.UTF8.GetByteCount(fmt);
20271 byte* nativeFmtStackBytes = stackalloc
byte[fmtByteCount + 1];
20272 nativeFmt = nativeFmtStackBytes;
20275 int nativeFmtOffset =
Util.
GetUtf8(fmt, nativeFmt, fmtByteCount);
20276 nativeFmt[nativeFmtOffset] = 0;
20297 int fmtByteCount = 0;
20300 fmtByteCount = Encoding.UTF8.GetByteCount(fmt);
20307 byte* nativeFmtStackBytes = stackalloc
byte[fmtByteCount + 1];
20308 nativeFmt = nativeFmtStackBytes;
20311 int nativeFmtOffset =
Util.
GetUtf8(fmt, nativeFmt, fmtByteCount);
20312 nativeFmt[nativeFmtOffset] = 0;
20333 int textByteCount = 0;
20336 textByteCount = Encoding.UTF8.GetByteCount(text);
20343 byte* nativeTextStackBytes = stackalloc
byte[textByteCount + 1];
20344 nativeText = nativeTextStackBytes;
20347 int nativeTextOffset =
Util.
GetUtf8(text, nativeText, textByteCount);
20348 nativeText[nativeTextOffset] = 0;
20355 byte* nativeTextEnd =
null;
20370 int fmtByteCount = 0;
20373 fmtByteCount = Encoding.UTF8.GetByteCount(fmt);
20380 byte* nativeFmtStackBytes = stackalloc
byte[fmtByteCount + 1];
20381 nativeFmt = nativeFmtStackBytes;
20384 int nativeFmtOffset =
Util.
GetUtf8(fmt, nativeFmt, fmtByteCount);
20385 nativeFmt[nativeFmtOffset] = 0;
20407 int labelByteCount = 0;
20410 labelByteCount = Encoding.UTF8.GetByteCount(label);
20417 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
20418 nativeLabel = nativeLabelStackBytes;
20421 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
20422 nativeLabel[nativeLabelOffset] = 0;
20426 nativeLabel =
null;
20447 int strIdByteCount = 0;
20450 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
20457 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
20458 nativeStrId = nativeStrIdStackBytes;
20461 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
20462 nativeStrId[nativeStrIdOffset] = 0;
20466 nativeStrId =
null;
20470 int fmtByteCount = 0;
20473 fmtByteCount = Encoding.UTF8.GetByteCount(fmt);
20480 byte* nativeFmtStackBytes = stackalloc
byte[fmtByteCount + 1];
20481 nativeFmt = nativeFmtStackBytes;
20484 int nativeFmtOffset =
Util.
GetUtf8(fmt, nativeFmt, fmtByteCount);
20485 nativeFmt[nativeFmtOffset] = 0;
20514 void* nativePtrId = ptrId.ToPointer();
20516 int fmtByteCount = 0;
20519 fmtByteCount = Encoding.UTF8.GetByteCount(fmt);
20526 byte* nativeFmtStackBytes = stackalloc
byte[fmtByteCount + 1];
20527 nativeFmt = nativeFmtStackBytes;
20530 int nativeFmtOffset =
Util.
GetUtf8(fmt, nativeFmt, fmtByteCount);
20531 nativeFmt[nativeFmtOffset] = 0;
20555 int labelByteCount = 0;
20558 labelByteCount = Encoding.UTF8.GetByteCount(label);
20565 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
20566 nativeLabel = nativeLabelStackBytes;
20569 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
20570 nativeLabel[nativeLabelOffset] = 0;
20574 nativeLabel =
null;
20596 int labelByteCount = 0;
20599 labelByteCount = Encoding.UTF8.GetByteCount(label);
20606 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
20607 nativeLabel = nativeLabelStackBytes;
20610 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
20611 nativeLabel[nativeLabelOffset] = 0;
20615 nativeLabel =
null;
20637 int strIdByteCount = 0;
20640 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
20647 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
20648 nativeStrId = nativeStrIdStackBytes;
20651 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
20652 nativeStrId[nativeStrIdOffset] = 0;
20656 nativeStrId =
null;
20660 int fmtByteCount = 0;
20663 fmtByteCount = Encoding.UTF8.GetByteCount(fmt);
20670 byte* nativeFmtStackBytes = stackalloc
byte[fmtByteCount + 1];
20671 nativeFmt = nativeFmtStackBytes;
20674 int nativeFmtOffset =
Util.
GetUtf8(fmt, nativeFmt, fmtByteCount);
20675 nativeFmt[nativeFmtOffset] = 0;
20705 void* nativePtrId = ptrId.ToPointer();
20707 int fmtByteCount = 0;
20710 fmtByteCount = Encoding.UTF8.GetByteCount(fmt);
20717 byte* nativeFmtStackBytes = stackalloc
byte[fmtByteCount + 1];
20718 nativeFmt = nativeFmtStackBytes;
20721 int nativeFmtOffset =
Util.
GetUtf8(fmt, nativeFmt, fmtByteCount);
20722 nativeFmt[nativeFmtOffset] = 0;
20753 int strIdByteCount = 0;
20756 strIdByteCount = Encoding.UTF8.GetByteCount(strId);
20763 byte* nativeStrIdStackBytes = stackalloc
byte[strIdByteCount + 1];
20764 nativeStrId = nativeStrIdStackBytes;
20767 int nativeStrIdOffset =
Util.
GetUtf8(strId, nativeStrId, strIdByteCount);
20768 nativeStrId[nativeStrIdOffset] = 0;
20772 nativeStrId =
null;
20788 void* nativePtrId = ptrId.ToPointer();
20797 float indentW = 0.0f;
20823 public static void Value(
string prefix,
bool b)
20825 byte* nativePrefix;
20826 int prefixByteCount = 0;
20827 if (prefix !=
null)
20829 prefixByteCount = Encoding.UTF8.GetByteCount(prefix);
20836 byte* nativePrefixStackBytes = stackalloc
byte[prefixByteCount + 1];
20837 nativePrefix = nativePrefixStackBytes;
20840 int nativePrefixOffset =
Util.
GetUtf8(prefix, nativePrefix, prefixByteCount);
20841 nativePrefix[nativePrefixOffset] = 0;
20845 nativePrefix =
null;
20848 byte nativeB = b ? (byte) 1 : (
byte) 0;
20861 public static void Value(
string prefix,
int v)
20863 byte* nativePrefix;
20864 int prefixByteCount = 0;
20865 if (prefix !=
null)
20867 prefixByteCount = Encoding.UTF8.GetByteCount(prefix);
20874 byte* nativePrefixStackBytes = stackalloc
byte[prefixByteCount + 1];
20875 nativePrefix = nativePrefixStackBytes;
20878 int nativePrefixOffset =
Util.
GetUtf8(prefix, nativePrefix, prefixByteCount);
20879 nativePrefix[nativePrefixOffset] = 0;
20883 nativePrefix =
null;
20898 public static void Value(
string prefix, uint v)
20900 byte* nativePrefix;
20901 int prefixByteCount = 0;
20902 if (prefix !=
null)
20904 prefixByteCount = Encoding.UTF8.GetByteCount(prefix);
20911 byte* nativePrefixStackBytes = stackalloc
byte[prefixByteCount + 1];
20912 nativePrefix = nativePrefixStackBytes;
20915 int nativePrefixOffset =
Util.
GetUtf8(prefix, nativePrefix, prefixByteCount);
20916 nativePrefix[nativePrefixOffset] = 0;
20920 nativePrefix =
null;
20935 public static void Value(
string prefix,
float v)
20937 byte* nativePrefix;
20938 int prefixByteCount = 0;
20939 if (prefix !=
null)
20941 prefixByteCount = Encoding.UTF8.GetByteCount(prefix);
20948 byte* nativePrefixStackBytes = stackalloc
byte[prefixByteCount + 1];
20949 nativePrefix = nativePrefixStackBytes;
20952 int nativePrefixOffset =
Util.
GetUtf8(prefix, nativePrefix, prefixByteCount);
20953 nativePrefix[nativePrefixOffset] = 0;
20957 nativePrefix =
null;
20960 byte* nativeFloatFormat =
null;
20974 public static void Value(
string prefix,
float v,
string floatFormat)
20976 byte* nativePrefix;
20977 int prefixByteCount = 0;
20978 if (prefix !=
null)
20980 prefixByteCount = Encoding.UTF8.GetByteCount(prefix);
20987 byte* nativePrefixStackBytes = stackalloc
byte[prefixByteCount + 1];
20988 nativePrefix = nativePrefixStackBytes;
20991 int nativePrefixOffset =
Util.
GetUtf8(prefix, nativePrefix, prefixByteCount);
20992 nativePrefix[nativePrefixOffset] = 0;
20996 nativePrefix =
null;
20999 byte* nativeFloatFormat;
21000 int floatFormatByteCount = 0;
21001 if (floatFormat !=
null)
21003 floatFormatByteCount = Encoding.UTF8.GetByteCount(floatFormat);
21006 nativeFloatFormat =
Util.
Allocate(floatFormatByteCount + 1);
21010 byte* nativeFloatFormatStackBytes = stackalloc
byte[floatFormatByteCount + 1];
21011 nativeFloatFormat = nativeFloatFormatStackBytes;
21014 int nativeFloatFormatOffset =
Util.
GetUtf8(floatFormat, nativeFloatFormat, floatFormatByteCount);
21015 nativeFloatFormat[nativeFloatFormatOffset] = 0;
21019 nativeFloatFormat =
null;
21046 int labelByteCount = 0;
21049 labelByteCount = Encoding.UTF8.GetByteCount(label);
21056 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
21057 nativeLabel = nativeLabelStackBytes;
21060 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
21061 nativeLabel[nativeLabelOffset] = 0;
21065 nativeLabel =
null;
21068 byte* nativeFormat;
21069 int formatByteCount = 0;
21070 formatByteCount = Encoding.UTF8.GetByteCount(
"%.3f");
21077 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
21078 nativeFormat = nativeFormatStackBytes;
21081 int nativeFormatOffset =
Util.
GetUtf8(
"%.3f", nativeFormat, formatByteCount);
21082 nativeFormat[nativeFormatOffset] = 0;
21084 fixed (
float* nativeV = &v)
21114 int labelByteCount = 0;
21117 labelByteCount = Encoding.UTF8.GetByteCount(label);
21124 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
21125 nativeLabel = nativeLabelStackBytes;
21128 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
21129 nativeLabel[nativeLabelOffset] = 0;
21133 nativeLabel =
null;
21136 byte* nativeFormat;
21137 int formatByteCount = 0;
21138 if (format !=
null)
21140 formatByteCount = Encoding.UTF8.GetByteCount(format);
21147 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
21148 nativeFormat = nativeFormatStackBytes;
21151 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
21152 nativeFormat[nativeFormatOffset] = 0;
21156 nativeFormat =
null;
21160 fixed (
float* nativeV = &v)
21191 int labelByteCount = 0;
21194 labelByteCount = Encoding.UTF8.GetByteCount(label);
21201 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
21202 nativeLabel = nativeLabelStackBytes;
21205 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
21206 nativeLabel[nativeLabelOffset] = 0;
21210 nativeLabel =
null;
21213 byte* nativeFormat;
21214 int formatByteCount = 0;
21215 if (format !=
null)
21217 formatByteCount = Encoding.UTF8.GetByteCount(format);
21224 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
21225 nativeFormat = nativeFormatStackBytes;
21228 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
21229 nativeFormat[nativeFormatOffset] = 0;
21233 nativeFormat =
null;
21236 fixed (
float* nativeV = &v)
21265 int labelByteCount = 0;
21268 labelByteCount = Encoding.UTF8.GetByteCount(label);
21275 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
21276 nativeLabel = nativeLabelStackBytes;
21279 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
21280 nativeLabel[nativeLabelOffset] = 0;
21284 nativeLabel =
null;
21287 byte* nativeFormat;
21288 int formatByteCount = 0;
21289 formatByteCount = Encoding.UTF8.GetByteCount(
"%d");
21296 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
21297 nativeFormat = nativeFormatStackBytes;
21300 int nativeFormatOffset =
Util.
GetUtf8(
"%d", nativeFormat, formatByteCount);
21301 nativeFormat[nativeFormatOffset] = 0;
21303 fixed (
int* nativeV = &v)
21333 int labelByteCount = 0;
21336 labelByteCount = Encoding.UTF8.GetByteCount(label);
21343 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
21344 nativeLabel = nativeLabelStackBytes;
21347 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
21348 nativeLabel[nativeLabelOffset] = 0;
21352 nativeLabel =
null;
21355 byte* nativeFormat;
21356 int formatByteCount = 0;
21357 if (format !=
null)
21359 formatByteCount = Encoding.UTF8.GetByteCount(format);
21366 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
21367 nativeFormat = nativeFormatStackBytes;
21370 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
21371 nativeFormat[nativeFormatOffset] = 0;
21375 nativeFormat =
null;
21379 fixed (
int* nativeV = &v)
21410 int labelByteCount = 0;
21413 labelByteCount = Encoding.UTF8.GetByteCount(label);
21420 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
21421 nativeLabel = nativeLabelStackBytes;
21424 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
21425 nativeLabel[nativeLabelOffset] = 0;
21429 nativeLabel =
null;
21432 byte* nativeFormat;
21433 int formatByteCount = 0;
21434 if (format !=
null)
21436 formatByteCount = Encoding.UTF8.GetByteCount(format);
21443 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
21444 nativeFormat = nativeFormatStackBytes;
21447 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
21448 nativeFormat[nativeFormatOffset] = 0;
21452 nativeFormat =
null;
21455 fixed (
int* nativeV = &v)
21485 int labelByteCount = 0;
21488 labelByteCount = Encoding.UTF8.GetByteCount(label);
21495 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
21496 nativeLabel = nativeLabelStackBytes;
21499 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
21500 nativeLabel[nativeLabelOffset] = 0;
21504 nativeLabel =
null;
21507 void* nativePData = pData.ToPointer();
21508 void* nativePMin = pMin.ToPointer();
21509 void* nativePMax = pMax.ToPointer();
21510 byte* nativeFormat =
null;
21512 byte ret =
ImGuiNative.
igVSliderScalar(nativeLabel, size, dataType, nativePData, nativePMin, nativePMax, nativeFormat, flag);
21535 int labelByteCount = 0;
21538 labelByteCount = Encoding.UTF8.GetByteCount(label);
21545 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
21546 nativeLabel = nativeLabelStackBytes;
21549 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
21550 nativeLabel[nativeLabelOffset] = 0;
21554 nativeLabel =
null;
21557 void* nativePData = pData.ToPointer();
21558 void* nativePMin = pMin.ToPointer();
21559 void* nativePMax = pMax.ToPointer();
21560 byte* nativeFormat;
21561 int formatByteCount = 0;
21562 if (format !=
null)
21564 formatByteCount = Encoding.UTF8.GetByteCount(format);
21571 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
21572 nativeFormat = nativeFormatStackBytes;
21575 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
21576 nativeFormat[nativeFormatOffset] = 0;
21580 nativeFormat =
null;
21584 byte ret =
ImGuiNative.
igVSliderScalar(nativeLabel, size, dataType, nativePData, nativePMin, nativePMax, nativeFormat, flag);
21613 int labelByteCount = 0;
21616 labelByteCount = Encoding.UTF8.GetByteCount(label);
21623 byte* nativeLabelStackBytes = stackalloc
byte[labelByteCount + 1];
21624 nativeLabel = nativeLabelStackBytes;
21627 int nativeLabelOffset =
Util.
GetUtf8(label, nativeLabel, labelByteCount);
21628 nativeLabel[nativeLabelOffset] = 0;
21632 nativeLabel =
null;
21635 void* nativePData = pData.ToPointer();
21636 void* nativePMin = pMin.ToPointer();
21637 void* nativePMax = pMax.ToPointer();
21638 byte* nativeFormat;
21639 int formatByteCount = 0;
21640 if (format !=
null)
21642 formatByteCount = Encoding.UTF8.GetByteCount(format);
21649 byte* nativeFormatStackBytes = stackalloc
byte[formatByteCount + 1];
21650 nativeFormat = nativeFormatStackBytes;
21653 int nativeFormatOffset =
Util.
GetUtf8(format, nativeFormat, formatByteCount);
21654 nativeFormat[nativeFormatOffset] = 0;
21658 nativeFormat =
null;
21661 byte ret =
ImGuiNative.
igVSliderScalar(nativeLabel, size, dataType, nativePData, nativePMin, nativePMax, nativeFormat, flag);
21686 =>
InputText(label, buf, bufSize, 0,
null, IntPtr.Zero);
21701 =>
InputText(label, buf, bufSize, flag,
null, IntPtr.Zero);
21717 ImGuiInputTextCallback callback)
21718 =>
InputText(label, buf, bufSize, flag, callback, IntPtr.Zero);
21735 ImGuiInputTextCallback callback,
21738 int utf8LabelByteCount = Encoding.UTF8.GetByteCount(label);
21739 byte* utf8LabelBytes;
21742 utf8LabelBytes =
Util.
Allocate(utf8LabelByteCount + 1);
21746 byte* stackPtr = stackalloc
byte[utf8LabelByteCount + 1];
21747 utf8LabelBytes = stackPtr;
21750 Util.
GetUtf8(label, utf8LabelBytes, utf8LabelByteCount);
21753 fixed (
byte* bufPtr = buf)
21755 ret =
ImGuiNative.
igInputText(utf8LabelBytes, bufPtr, bufSize, flag, callback, userData.ToPointer()) != 0;
21776 uint maxLength) =>
InputText(label, ref input, maxLength, 0,
null, IntPtr.Zero);
21806 ImGuiInputTextCallback callback) =>
InputText(label, ref input, maxLength, flag, callback, IntPtr.Zero);
21823 ImGuiInputTextCallback callback,
21827 IntPtr labelPtr = Marshal.StringToHGlobalAnsi(label);
21828 IntPtr inputPtr = Marshal.StringToHGlobalAnsi(input);
21831 byte* utf8LabelBytes = (
byte*) labelPtr.ToPointer();
21832 byte* utf8InputBytes = (
byte*) inputPtr.ToPointer();
21835 int inputBufSize = Math.Max((
int) maxLength + 1, Encoding.UTF8.GetByteCount(input) + 1);
21836 byte* modifiedUtf8InputBytes = stackalloc
byte[inputBufSize];
21837 byte* originalUtf8InputBytes = stackalloc
byte[inputBufSize];
21840 Unsafe.
CopyBlock(modifiedUtf8InputBytes, utf8InputBytes, (uint) inputBufSize);
21845 modifiedUtf8InputBytes,
21846 (uint) inputBufSize,
21849 userData.ToPointer());
21854 input = Encoding.UTF8.GetString(modifiedUtf8InputBytes, inputBufSize);
21858 Marshal.FreeHGlobal(labelPtr);
21859 Marshal.FreeHGlobal(inputPtr);
21861 return result != 0;
21911 ImGuiInputTextCallback callback) =>
InputTextMultiline(label, ref input, maxLength, size, flag, callback, IntPtr.Zero);
21930 ImGuiInputTextCallback callback,
21934 IntPtr labelPtr = Marshal.StringToHGlobalAnsi(label);
21935 IntPtr inputPtr = Marshal.StringToHGlobalAnsi(input);
21938 byte* utf8LabelBytes = (
byte*) labelPtr.ToPointer();
21939 byte* utf8InputBytes = (
byte*) inputPtr.ToPointer();
21942 int inputBufSize = Math.Max((
int) maxLength + 1, Encoding.UTF8.GetByteCount(input) + 1);
21943 byte* modifiedUtf8InputBytes = stackalloc
byte[inputBufSize];
21944 byte* originalUtf8InputBytes = stackalloc
byte[inputBufSize];
21947 Unsafe.
CopyBlock(modifiedUtf8InputBytes, utf8InputBytes, (uint) inputBufSize);
21952 modifiedUtf8InputBytes,
21953 (uint) inputBufSize,
21957 userData.ToPointer());
21962 input = Encoding.UTF8.GetString(modifiedUtf8InputBytes, inputBufSize);
21966 Marshal.FreeHGlobal(labelPtr);
21967 Marshal.FreeHGlobal(inputPtr);
21969 return result != 0;
21981 if ((array1 ==
null) && (array2 ==
null))
21986 if (array1 ==
null || array2 ==
null || array1.Length != array2.Length)
21991 for (
int i = 0; i < array1.Length; i++)
21993 if (array1[i] != array2[i])
22015 uint maxLength) =>
InputTextWithHint(label, hint, ref input, maxLength, 0,
null, IntPtr.Zero);
22049 ImGuiInputTextCallback callback) =>
InputTextWithHint(label, hint, ref input, maxLength, flag, callback, IntPtr.Zero);
22068 ImGuiInputTextCallback callback,
22073 byte* utf8InputBytes =
GetUtf8Bytes(input, maxLength);
22082 userData.ToPointer());
22085 if (hasInputChanged)
22094 return result != 0;
22104 int byteCount = Encoding.UTF8.GetByteCount(text);
22105 byte* utf8Bytes = (
byte*) Marshal.AllocHGlobal(byteCount + 1);
22107 utf8Bytes[byteCount] = 0;
22120 int byteCount = Encoding.UTF8.GetByteCount(text);
22121 int inputBufSize = Math.Max((
int) maxLength + 1, byteCount + 1);
22122 byte[] utf8BytesArray =
new byte[inputBufSize];
22124 fixed (
byte* utf8Bytes = utf8BytesArray)
22129 byte* result = (
byte*) Marshal.AllocHGlobal(inputBufSize);
22130 Buffer.MemoryCopy(utf8Bytes, result, inputBufSize, inputBufSize);
22145 int byteCount = Encoding.UTF8.GetByteCount(text);
22176 if (utf8Bytes ==
null)
22182 while (*(utf8Bytes + length) != 0)
22224 =>
CalcTextSizeImpl(text, hideTextAfterDoubleHash: hideTextAfterDoubleHash);
22244 =>
CalcTextSizeImpl(text, start: start, hideTextAfterDoubleHash: hideTextAfterDoubleHash);
22264 =>
CalcTextSizeImpl(text, hideTextAfterDoubleHash: hideTextAfterDoubleHash, wrapWidth: wrapWidth);
22286 =>
CalcTextSizeImpl(text, start: start, length: length, wrapWidth: wrapWidth);
22298 =>
CalcTextSizeImpl(text, start, length, hideTextAfterDoubleHash, wrapWidth);
22312 int? length =
null,
22313 bool hideTextAfterDoubleHash =
false,
22314 float wrapWidth = -1.0f)
22317 byte* nativeTextStart =
null;
22318 byte* nativeTextEnd =
null;
22319 int textByteCount = 0;
22322 int textToCopyLen = length.HasValue ? length.Value : text.
Length;
22330 byte* nativeTextStackBytes = stackalloc
byte[textByteCount + 1];
22331 nativeTextStart = nativeTextStackBytes;
22334 int nativeTextOffset =
Util.
GetUtf8(text, start, textToCopyLen, nativeTextStart, textByteCount);
22335 nativeTextStart[nativeTextOffset] = 0;
22336 nativeTextEnd = nativeTextStart + nativeTextOffset;
22359 =>
InputText(label, buf, bufSize, 0,
null, IntPtr.Zero);
22374 =>
InputText(label, buf, bufSize, flag,
null, IntPtr.Zero);
22390 ImGuiInputTextCallback callback)
22391 =>
InputText(label, buf, bufSize, flag, callback, IntPtr.Zero);
22408 ImGuiInputTextCallback callback,
22411 int utf8LabelByteCount = Encoding.UTF8.GetByteCount(label);
22412 byte* utf8LabelBytes;
22415 utf8LabelBytes =
Util.
Allocate(utf8LabelByteCount + 1);
22419 byte* stackPtr = stackalloc
byte[utf8LabelByteCount + 1];
22420 utf8LabelBytes = stackPtr;
22423 Util.
GetUtf8(label, utf8LabelBytes, utf8LabelByteCount);
22425 bool ret =
ImGuiNative.
igInputText(utf8LabelBytes, (
byte*) buf.ToPointer(), bufSize, flag, callback, userData.ToPointer()) != 0;
22443 int utf8NameByteCount = Encoding.UTF8.GetByteCount(name);
22444 byte* utf8NameBytes;
22451 byte* stackPtr = stackalloc
byte[utf8NameByteCount + 1];
22452 utf8NameBytes = stackPtr;
22455 Util.
GetUtf8(name, utf8NameBytes, utf8NameByteCount);
22457 byte* pOpen =
null;
22474 public static bool MenuItem(
string label,
bool enabled) =>
MenuItem(label,
string.Empty,
false, enabled);